OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .square { | 5 .square { |
6 position: absolute; | 6 position: absolute; |
7 background: blue; | 7 background: blue; |
8 width: 20px; | 8 width: 20px; |
9 height: 20px; | 9 height: 20px; |
10 left: 0px; | 10 left: 0px; |
11 -webkit-transition-timing-function: linear; | 11 -webkit-transition-timing-function: linear; |
12 -webkit-transition-duration: 2s; | 12 -webkit-transition-duration: 2s; |
13 } | 13 } |
14 | 14 |
15 #square1 { | 15 #square1 { |
16 top: 20px; | 16 top: 20px; |
17 -webkit-transition-property: left; | 17 -webkit-transition-property: left; |
18 -webkit-transition-delay: -1s; | 18 -webkit-transition-delay: -1s; |
19 } | 19 } |
20 #square2 { | 20 #square2 { |
21 top: 60px; | 21 top: 60px; |
22 -webkit-transition-property: left; | 22 -webkit-transition-property: left; |
23 } | 23 } |
24 .moved { | 24 .moved { |
25 left: 600px; | 25 left: 600px; |
26 } | 26 } |
27 | 27 |
28 #square3 { | 28 #square3 { |
29 top: 100px; | 29 top: 100px; |
30 -webkit-transition-property: -webkit-transform; | 30 -webkit-transition-property: transform; |
31 -webkit-transition-delay: -1s; | 31 -webkit-transition-delay: -1s; |
32 } | 32 } |
33 #square4 { | 33 #square4 { |
34 top: 140px; | 34 top: 140px; |
35 -webkit-transition-property: -webkit-transform; | 35 -webkit-transition-property: transform; |
36 } | 36 } |
37 .translated { | 37 .translated { |
38 -webkit-transform: translateX(600px); | 38 transform: translateX(600px); |
39 } | 39 } |
40 </style> | 40 </style> |
41 | 41 |
42 <script src="../animations/resources/animation-test-helpers.js"></script> | 42 <script src="../animations/resources/animation-test-helpers.js"></script> |
43 | 43 |
44 <script> | 44 <script> |
45 // The delays of squares 1 and 3 are negative, so they should be ahead. | 45 // The delays of squares 1 and 3 are negative, so they should be ahead. |
46 const expectedValues = [ | 46 const expectedValues = [ |
47 // [time, element-id, property, expected-value, tolerance] | 47 // [time, element-id, property, expected-value, tolerance] |
48 [0.0, "square1", "left", 300, 15], | 48 [0.0, "square1", "left", 300, 15], |
(...skipping 23 matching lines...) Expand all Loading... |
72 <div class="square" id="square1"></div> | 72 <div class="square" id="square1"></div> |
73 <div class="square" id="square2"></div> | 73 <div class="square" id="square2"></div> |
74 <div class="square" id="square3"></div> | 74 <div class="square" id="square3"></div> |
75 <div class="square" id="square4"></div> | 75 <div class="square" id="square4"></div> |
76 | 76 |
77 <div id="result"> | 77 <div id="result"> |
78 </div> | 78 </div> |
79 | 79 |
80 </body> | 80 </body> |
81 </html> | 81 </html> |
OLD | NEW |