| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test that paused composited animations do not animate</title> | 4 <title>Test that paused composited animations do not animate</title> |
| 5 <style> | 5 <style> |
| 6 #box { | 6 #box { |
| 7 background-color: coral; | 7 background-color: coral; |
| 8 height: 100px; | 8 height: 100px; |
| 9 width: 100px; | 9 width: 100px; |
| 10 opacity: 1.0; | 10 opacity: 1.0; |
| 11 -webkit-animation-play-state: paused; | 11 animation-play-state: paused; |
| 12 -webkit-animation-duration: 0.2s; | 12 animation-duration: 0.2s; |
| 13 -webkit-animation-timing-function: linear; | 13 animation-timing-function: linear; |
| 14 -webkit-animation-name: fade; | 14 animation-name: fade; |
| 15 -webkit-animation-fill-mode: forwards; | 15 animation-fill-mode: forwards; |
| 16 } | 16 } |
| 17 | 17 |
| 18 @-webkit-keyframes fade { | 18 @keyframes fade { |
| 19 to { opacity: 0.3; } | 19 to { opacity: 0.3; } |
| 20 } | 20 } |
| 21 </style> | 21 </style> |
| 22 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr
ipt> | 22 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr
ipt> |
| 23 <script type="text/javascript"> | 23 <script type="text/javascript"> |
| 24 const expectedValues = [ | 24 const expectedValues = [ |
| 25 // [time, element-id, property, expected-value, tolerance] | 25 // [time, element-id, property, expected-value, tolerance] |
| 26 [0.2, "box", "opacity", 1, 0.002], | 26 [0.2, "box", "opacity", 1, 0.002], |
| 27 ]; | 27 ]; |
| 28 | 28 |
| 29 const doPixelTest = true; | 29 const doPixelTest = true; |
| 30 const disablePauseAnimationAPI = true; | 30 const disablePauseAnimationAPI = true; |
| 31 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix
elTest); | 31 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix
elTest); |
| 32 </script> | 32 </script> |
| 33 </head> | 33 </head> |
| 34 <body> | 34 <body> |
| 35 <div id="box"></div> | 35 <div id="box"></div> |
| 36 <div id="result"></div> | 36 <div id="result"></div> |
| 37 </body> | 37 </body> |
| 38 </html> | 38 </html> |
| OLD | NEW |