Chromium Code Reviews| 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 background-color: blue; | 9 background-color: blue; |
| 10 -webkit-transform: translateX(0px); | 10 transform: translateX(0px); |
| 11 -webkit-transition-duration: 1s; | 11 -webkit-transition-duration: 1s; |
| 12 -webkit-transition-timing-function: steps(3, end); | 12 -webkit-transition-timing-function: steps(3, end); |
| 13 -webkit-transition-property: -webkit-transform; | 13 -webkit-transition-property: -webkit-transform; |
|
alancutter (OOO until 2018)
2014/10/14 05:13:49
Need to change the transition property target as w
| |
| 14 } | 14 } |
| 15 </style> | 15 </style> |
| 16 <script src="../animations/resources/animation-test-helpers.js"></script> | 16 <script src="../animations/resources/animation-test-helpers.js"></script> |
| 17 <script type="text/javascript"> | 17 <script type="text/javascript"> |
| 18 | 18 |
| 19 const expectedValues = [ | 19 const expectedValues = [ |
| 20 // [time, element-id, property, expected-value, tolerance] | 20 // [time, element-id, property, expected-value, tolerance] |
| 21 [0.25, "box", "-webkit-transform.4", 0, 5], | 21 [0.25, "box", "-webkit-transform.4", 0, 5], |
| 22 [0.5, "box", "-webkit-transform.4", 66, 5], | 22 [0.5, "box", "-webkit-transform.4", 66, 5], |
| 23 [0.75, "box", "-webkit-transform.4", 133, 5], | 23 [0.75, "box", "-webkit-transform.4", 133, 5], |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 36 | 36 |
| 37 <p> | 37 <p> |
| 38 The box should move horizontally 200px over 1s, in 3 equal increments. | 38 The box should move horizontally 200px over 1s, in 3 equal increments. |
| 39 </p> | 39 </p> |
| 40 <div id="box"> | 40 <div id="box"> |
| 41 </div> | 41 </div> |
| 42 <div id="result"> | 42 <div id="result"> |
| 43 </div> | 43 </div> |
| 44 </body> | 44 </body> |
| 45 </html> | 45 </html> |
| OLD | NEW |