OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
5 <style> | 5 <style> |
6 .outer { | 6 .outer { |
7 width: 120px; | 7 width: 120px; |
8 height: 240px; | 8 height: 240px; |
9 margin: 20px; | 9 margin: 20px; |
10 border: 1px solid black; | 10 border: 1px solid black; |
(...skipping 22 matching lines...) Expand all Loading... |
33 #animated.animated { | 33 #animated.animated { |
34 -webkit-animation: swing 1s linear 1; | 34 -webkit-animation: swing 1s linear 1; |
35 } | 35 } |
36 | 36 |
37 /* for manual testing */ | 37 /* for manual testing */ |
38 #animated:hover { | 38 #animated:hover { |
39 -webkit-animation-play-state: paused; | 39 -webkit-animation-play-state: paused; |
40 } | 40 } |
41 | 41 |
42 .composited { | 42 .composited { |
43 -webkit-transform: translateZ(0); | 43 transform: translateZ(0); |
44 } | 44 } |
45 | 45 |
46 @-webkit-keyframes swing { | 46 @-webkit-keyframes swing { |
47 from { -webkit-transform: rotate(0deg); } | 47 from { transform: rotate(0deg); } |
48 to { -webkit-transform: rotate(90deg); } | 48 to { transform: rotate(90deg); } |
49 } | 49 } |
50 </style> | 50 </style> |
51 <script src="../../animations/resources/animation-test-helpers.js" type="text/
javascript" charset="utf-8"></script> | 51 <script src="../../animations/resources/animation-test-helpers.js" type="text/
javascript" charset="utf-8"></script> |
52 <script type="text/javascript" charset="utf-8"> | 52 <script type="text/javascript" charset="utf-8"> |
53 const expectedValues = [ | 53 const expectedValues = [ |
54 // [time, element-id, property, expected-value, tolerance] | 54 // [time, element-id, property, expected-value, tolerance] |
55 [0.5, "animated", "webkitTransform.0", 0.76, 0.1], | 55 [0.5, "animated", "webkitTransform.0", 0.76, 0.1], |
56 ]; | 56 ]; |
57 | 57 |
58 var pixelTest = true; | 58 var pixelTest = true; |
59 var disablePauseAPI = false; | 59 var disablePauseAPI = false; |
60 runAnimationTest(expectedValues, null, null, disablePauseAPI, pixelTest); | 60 runAnimationTest(expectedValues, null, null, disablePauseAPI, pixelTest); |
61 </script> | 61 </script> |
62 </head> | 62 </head> |
63 <body> | 63 <body> |
64 <p>The top left box, and all reflections should be rotated 45deg.</p> | 64 <p>The top left box, and all reflections should be rotated 45deg.</p> |
65 <div class="outer"> | 65 <div class="outer"> |
66 <div id="inner" class="inner"> | 66 <div id="inner" class="inner"> |
67 <div id="animated" class="animated"></div> | 67 <div id="animated" class="animated"></div> |
68 </div> | 68 </div> |
69 </div> | 69 </div> |
70 <div id="result"></div> | 70 <div id="result"></div> |
71 </body> | 71 </body> |
72 </html> | 72 </html> |
OLD | NEW |