| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style type="text/css"> | 4 <style type="text/css"> |
| 5 .container { | 5 .container { |
| 6 position: relative; | 6 position: relative; |
| 7 height: 100px; | 7 height: 100px; |
| 8 } | 8 } |
| 9 .box { | 9 .box { |
| 10 position: absolute; | 10 position: absolute; |
| 11 left: 0; | 11 left: 0; |
| 12 top: 0; | 12 top: 0; |
| 13 height: 100px; | 13 height: 100px; |
| 14 width: 100px; | 14 width: 100px; |
| 15 background-color: green; | 15 background-color: green; |
| 16 } | 16 } |
| 17 | 17 |
| 18 #indicator { | 18 #indicator { |
| 19 position: absolute; | 19 position: absolute; |
| 20 top: 0; | 20 top: 0; |
| 21 left: 50px; | 21 left: 50px; |
| 22 background-color: red; | 22 background-color: red; |
| 23 } | 23 } |
| 24 | 24 |
| 25 #box { | 25 #box { |
| 26 -webkit-animation: anim 2s linear; | 26 -webkit-animation: anim 2s linear; |
| 27 } | 27 } |
| 28 | 28 |
| 29 @-webkit-keyframes anim { | 29 @-webkit-keyframes anim { |
| 30 from { -webkit-transform: matrix(1, 0, 0, 1, 100, 0); } | 30 from { transform: matrix(1, 0, 0, 1, 100, 0); } |
| 31 to { -webkit-transform: matrix(1, 0, 0, 1, 0, 0); } | 31 to { transform: matrix(1, 0, 0, 1, 0, 0); } |
| 32 } | 32 } |
| 33 </style> | 33 </style> |
| 34 <script src="../resources/animation-test-helpers.js" type="text/javascript"></
script> | 34 <script src="../resources/animation-test-helpers.js" type="text/javascript"></
script> |
| 35 <script type="text/javascript"> | 35 <script type="text/javascript"> |
| 36 const expectedValues = [ | 36 const expectedValues = [ |
| 37 // [time, element-id, property, expected-value, tolerance] | 37 // [time, element-id, property, expected-value, tolerance] |
| 38 [1, "box", "webkitTransform.4", 50, 2], | 38 [1, "box", "webkitTransform.4", 50, 2], |
| 39 ]; | 39 ]; |
| 40 | 40 |
| 41 var pixelTest = true; | 41 var pixelTest = true; |
| 42 var disablePauseAPI = false; | 42 var disablePauseAPI = false; |
| 43 runAnimationTest(expectedValues, null, null, disablePauseAPI, pixelTest); | 43 runAnimationTest(expectedValues, null, null, disablePauseAPI, pixelTest); |
| 44 </script> | 44 </script> |
| 45 </head> | 45 </head> |
| 46 <body> | 46 <body> |
| 47 | 47 |
| 48 <!-- In the pixel result, the green box should obscure the red box. --> | 48 <!-- In the pixel result, the green box should obscure the red box. --> |
| 49 <div class="container"> | 49 <div class="container"> |
| 50 <div id="indicator" class="box"></div> | 50 <div id="indicator" class="box"></div> |
| 51 <div class="box" id="box"></div> | 51 <div class="box" id="box"></div> |
| 52 </div> | 52 </div> |
| 53 | 53 |
| 54 <div id="result"></div> | 54 <div id="result"></div> |
| 55 </body> | 55 </body> |
| 56 </html> | 56 </html> |
| OLD | NEW |