| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <style> | 4 <style> |
| 5 @keyframes anim { | 5 @keyframes anim { |
| 6 from { background-color: blue; } | 6 from { background-color: blue; } |
| 7 to { background-color: red; } | 7 to { background-color: red; } |
| 8 } | 8 } |
| 9 | 9 |
| 10 #target { | 10 #target { |
| 11 animation: anim 20s -10s infinite linear paused; | 11 animation: anim 20s -10s infinite linear paused; |
| 12 width: 100px; | 12 width: 100px; |
| 13 height: 100px; | 13 height: 100px; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 37 target.style.animationPlayState = 'running'; | 37 target.style.animationPlayState = 'running'; |
| 38 assert_not_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)'
, 'background color'); | 38 assert_not_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)'
, 'background color'); |
| 39 | 39 |
| 40 target.style.animationPlayState = 'paused'; | 40 target.style.animationPlayState = 'paused'; |
| 41 target.style.animationIterationCount = '1'; | 41 target.style.animationIterationCount = '1'; |
| 42 target.style.animationDuration = '1s'; | 42 target.style.animationDuration = '1s'; |
| 43 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)', 'b
ackground color'); | 43 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)', 'b
ackground color'); |
| 44 | 44 |
| 45 }, "Check that changes in the animation timing properties are reflected immedi
ately"); | 45 }, "Check that changes in the animation timing properties are reflected immedi
ately"); |
| 46 </script> | 46 </script> |
| OLD | NEW |