OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 #box { | 4 #box { |
5 position: absolute; | 5 position: absolute; |
6 left: 100px; | 6 left: 100px; |
7 top: 100px; | 7 top: 100px; |
8 height: 100px; | 8 height: 100px; |
9 width: 100px; | 9 width: 100px; |
10 background-color: red; | 10 background-color: red; |
(...skipping 24 matching lines...) Expand all Loading... |
35 @-webkit-keyframes animShorthand { | 35 @-webkit-keyframes animShorthand { |
36 from { background: url(resources/blue-100.png); } | 36 from { background: url(resources/blue-100.png); } |
37 to { background: url(resources/green-100.png); } | 37 to { background: url(resources/green-100.png); } |
38 } | 38 } |
39 </style> | 39 </style> |
40 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> | 40 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> |
41 <script type="text/javascript" charset="utf-8"> | 41 <script type="text/javascript" charset="utf-8"> |
42 const expectedValues = [ | 42 const expectedValues = [ |
43 // [time, element-id, property, expected-value, tolerance] | 43 // [time, element-id, property, expected-value, tolerance] |
44 [2.5, "box", "backgroundImage", 0.5, 0.05], | 44 [2.5, "box", "backgroundImage", 0.5, 0.05], |
45 [2.5, ["box", "static:boxStatic"], "backgroundImage", 0.5, 0.05], | 45 [2.5, ["box", "boxStatic"], "backgroundImage", 0.5, 0.05], |
46 [2.5, ["boxShorthand", "static:boxStatic"], "backgroundImage", 0.5, 0.05], | 46 [2.5, ["boxShorthand", "boxStatic"], "backgroundImage", 0.5, 0.05], |
47 ]; | 47 ]; |
48 | 48 |
49 var doPixelTest = true; | 49 var doPixelTest = true; |
50 var disablePauseAPI = false; | 50 var disablePauseAPI = false; |
51 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, doPixelTe
st); | 51 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, doPixelTe
st); |
52 </script> | 52 </script> |
53 </head> | 53 </head> |
54 <body> | 54 <body> |
55 <div id="box"></div> | 55 <div id="box"></div> |
56 <div id="boxStatic"></div> | 56 <div id="boxStatic"></div> |
57 <div id="boxShorthand"></div> | 57 <div id="boxShorthand"></div> |
58 <div id="result"></div> | 58 <div id="result"></div> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |