OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 #target { | 6 #target { |
7 position: relative; | 7 position: relative; |
8 top: 100px; | 8 top: 100px; |
9 left: 100px; | 9 left: 100px; |
10 width: 100px; | 10 width: 100px; |
11 height: 100px; | 11 height: 100px; |
12 background-color: blue; | 12 background-color: blue; |
13 -webkit-transition-property: left; | 13 transition-property: left; |
14 -webkit-transition-duration: 0s; | 14 transition-duration: 0s; |
15 -webkit-transition-delay: 0.5s; | 15 transition-delay: 0.5s; |
16 } | 16 } |
17 | 17 |
18 #target.moved { | 18 #target.moved { |
19 left: 200px; | 19 left: 200px; |
20 } | 20 } |
21 </style> | 21 </style> |
22 <script src="../animations/resources/animation-test-helpers.js"></script> | 22 <script src="../animations/resources/animation-test-helpers.js"></script> |
23 <script> | 23 <script> |
24 const expectedValues = [ | 24 const expectedValues = [ |
25 // Times are relative to document load for transitions. | 25 // Times are relative to document load for transitions. |
(...skipping 11 matching lines...) Expand all Loading... |
37 runTransitionTest(expectedValues, setupTest); | 37 runTransitionTest(expectedValues, setupTest); |
38 </script> | 38 </script> |
39 </head> | 39 </head> |
40 <body> | 40 <body> |
41 | 41 |
42 <div id="target"></div> | 42 <div id="target"></div> |
43 <div id="result"></div> | 43 <div id="result"></div> |
44 | 44 |
45 </body> | 45 </body> |
46 </html> | 46 </html> |
OLD | NEW |