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 display: inline-block; | 10 display: inline-block; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 } | 48 } |
49 | 49 |
50 </style> | 50 </style> |
51 <script src="../../../animations/resources/animation-test-helpers.js"></script
> | 51 <script src="../../../animations/resources/animation-test-helpers.js"></script
> |
52 <script type="text/javascript"> | 52 <script type="text/javascript"> |
53 const expectedValues = [ | 53 const expectedValues = [ |
54 // [time, element-id, property, expected-value, tolerance] | 54 // [time, element-id, property, expected-value, tolerance] |
55 [1, "rectangle-box", "shapeInside", "rectangle(10%, 10%, 80%, 80%, 0px, 0p
x)", 0.05], | 55 [1, "rectangle-box", "shapeInside", "rectangle(10%, 10%, 80%, 80%, 0px, 0p
x)", 0.05], |
56 [1, "circle-box", "shapeInside", "circle(35% at 35% 35%)", 0.05], | 56 [1, "circle-box", "shapeInside", "circle(35% at 35% 35%)", 0.05], |
57 [1, "ellipse-box", "shapeInside", "ellipse(35% 30% at 35% 35%)", 0.05], | 57 [1, "ellipse-box", "shapeInside", "ellipse(35% 30% at 35% 35%)", 0.05], |
58 [1, "polygon-box", "shapeInside", "polygon(nonzero, 10% 10%, 90% 10%, 90%
90%, 10% 90%)", 0.05], | 58 [1, "polygon-box", "shapeInside", "polygon(10% 10%, 90% 10%, 90% 90%, 10%
90%)", 0.05], |
59 ]; | 59 ]; |
60 | 60 |
61 runAnimationTest(expectedValues); | 61 runAnimationTest(expectedValues); |
62 </script> | 62 </script> |
63 </head> | 63 </head> |
64 <body> | 64 <body> |
65 | 65 |
66 <div class="box" id="rectangle-box">Moving Text</div> | 66 <div class="box" id="rectangle-box">Moving Text</div> |
67 <div class="box" id="circle-box">Moving Text</div> | 67 <div class="box" id="circle-box">Moving Text</div> |
68 <div class="box" id="ellipse-box">Moving Text</div> | 68 <div class="box" id="ellipse-box">Moving Text</div> |
69 <div class="box" id="polygon-box">Moving Text</div> | 69 <div class="box" id="polygon-box">Moving Text</div> |
70 | 70 |
71 <div id="result"> | 71 <div id="result"> |
72 </div> | 72 </div> |
73 </body> | 73 </body> |
74 </html> | 74 </html> |
OLD | NEW |