| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 .box { | 6 .box { |
| 7 height: 100px; | 7 height: 100px; |
| 8 width: 100px; | 8 width: 100px; |
| 9 margin: 10px; | 9 margin: 10px; |
| 10 background-color: blue; | 10 background-color: blue; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 | 50 |
| 51 </style> | 51 </style> |
| 52 <script src="../../animations/resources/animation-test-helpers.js"></script> | 52 <script src="../../animations/resources/animation-test-helpers.js"></script> |
| 53 <script type="text/javascript"> | 53 <script type="text/javascript"> |
| 54 const expectedValues = [ | 54 const expectedValues = [ |
| 55 // [time, element-id, property, expected-value, tolerance] | 55 // [time, element-id, property, expected-value, tolerance] |
| 56 [1, "rectangle-box", "webkitClipPath", "rectangle(10%, 10%, 80%, 80%, 0px,
0px)", 0.05], | 56 [1, "rectangle-box", "webkitClipPath", "rectangle(10%, 10%, 80%, 80%, 0px,
0px)", 0.05], |
| 57 [1, "circle-box", "webkitClipPath", "circle(35% at 35% 35%)", 0.05], | 57 [1, "circle-box", "webkitClipPath", "circle(35% at 35% 35%)", 0.05], |
| 58 [1, "ellipse-box", "webkitClipPath", "ellipse(35% 30% at 35% 35%)", 0.05], | 58 [1, "ellipse-box", "webkitClipPath", "ellipse(35% 30% at 35% 35%)", 0.05], |
| 59 [1, "polygon-box", "webkitClipPath", "polygon(nonzero, 10% 10%, 90% 10%, 9
0% 90%, 10% 90%)", 0.05], | 59 [1, "polygon-box", "webkitClipPath", "polygon(10% 10%, 90% 10%, 90% 90%, 1
0% 90%)", 0.05], |
| 60 ]; | 60 ]; |
| 61 | 61 |
| 62 runAnimationTest(expectedValues); | 62 runAnimationTest(expectedValues); |
| 63 </script> | 63 </script> |
| 64 </head> | 64 </head> |
| 65 <body> | 65 <body> |
| 66 | 66 |
| 67 <div class="box" id="rectangle-box"></div> | 67 <div class="box" id="rectangle-box"></div> |
| 68 <div class="box" id="circle-box"></div> | 68 <div class="box" id="circle-box"></div> |
| 69 <div class="box" id="ellipse-box"></div> | 69 <div class="box" id="ellipse-box"></div> |
| 70 <div class="box" id="polygon-box"></div> | 70 <div class="box" id="polygon-box"></div> |
| 71 | 71 |
| 72 <div id="result"> | 72 <div id="result"> |
| 73 </div> | 73 </div> |
| 74 </body> | 74 </body> |
| 75 </html> | 75 </html> |
| OLD | NEW |