| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style type="text/css"> | 5 <style type="text/css"> |
| 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 } | 10 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 @-webkit-keyframes anim2 { | 25 @-webkit-keyframes anim2 { |
| 26 from { transform: perspective(1000px); } | 26 from { transform: perspective(1000px); } |
| 27 to { transform: none; } | 27 to { transform: none; } |
| 28 } | 28 } |
| 29 </style> | 29 </style> |
| 30 <script src="../resources/animation-test-helpers.js" type="text/javascript"></
script> | 30 <script src="../resources/animation-test-helpers.js" type="text/javascript"></
script> |
| 31 <script type="text/javascript"> | 31 <script type="text/javascript"> |
| 32 const expectedValues = [ | 32 const expectedValues = [ |
| 33 // [time, element-id, property, expected-value, tolerance] | 33 // [time, element-id, property, expected-value, tolerance] |
| 34 [0.5, "box", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0075
, 0, 0, 0, 1], 0.002], | 34 [0.5, "box", "transform", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0
075, 0, 0, 0, 1)", 0.002], |
| 35 [0.5, "box2", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0019
9, 0, 0, 0, 1], 0.002], | 35 [0.5, "box2", "transform", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0
0199, 0, 0, 0, 1)", 0.002], |
| 36 ]; | 36 ]; |
| 37 | 37 |
| 38 function setupTest() | 38 function setupTest() |
| 39 { | 39 { |
| 40 var box = document.getElementById('box'); | 40 var box = document.getElementById('box'); |
| 41 box.style.webkitTransform = 'perspective(1000px) rotateX(90deg)'; | 41 box.style.webkitTransform = 'perspective(1000px) rotateX(90deg)'; |
| 42 } | 42 } |
| 43 | 43 |
| 44 runAnimationTest(expectedValues); | 44 runAnimationTest(expectedValues); |
| 45 </script> | 45 </script> |
| 46 </head> | 46 </head> |
| 47 <body> | 47 <body> |
| 48 | 48 |
| 49 <div class="box" id="box"></div> | 49 <div class="box" id="box"></div> |
| 50 <div class="box" id="box2"></div> | 50 <div class="box" id="box2"></div> |
| 51 <div id="result"></div> | 51 <div id="result"></div> |
| 52 | 52 |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |