| 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 0% { left: 0px; } | 6 0% { left: 0px; } |
| 7 50% { left: 500px; } | 7 50% { left: 500px; } |
| 8 100% { left: 100px; } | 8 100% { left: 100px; } |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 assert_equals(getComputedStyle(target2).backgroundColor, 'rgb(160, 80, 40)')
; | 39 assert_equals(getComputedStyle(target2).backgroundColor, 'rgb(160, 80, 40)')
; |
| 40 | 40 |
| 41 keyframe.style.removeProperty('background-color'); | 41 keyframe.style.removeProperty('background-color'); |
| 42 assert_equals(getComputedStyle(target1).backgroundColor, 'rgb(0, 0, 0)'); | 42 assert_equals(getComputedStyle(target1).backgroundColor, 'rgb(0, 0, 0)'); |
| 43 assert_equals(getComputedStyle(target2).backgroundColor, 'rgb(0, 0, 0)'); | 43 assert_equals(getComputedStyle(target2).backgroundColor, 'rgb(0, 0, 0)'); |
| 44 | 44 |
| 45 keyframe.style.left = '200px'; | 45 keyframe.style.left = '200px'; |
| 46 assert_equals(parseInt(getComputedStyle(target1).left), 120, 'left offset'); | 46 assert_equals(parseInt(getComputedStyle(target1).left), 120, 'left offset'); |
| 47 assert_equals(parseInt(getComputedStyle(target2).left), 180, 'left offset'); | 47 assert_equals(parseInt(getComputedStyle(target2).left), 180, 'left offset'); |
| 48 | 48 |
| 49 keyframe.style.left = '500px'; | |
| 50 keyframe.keyText = '20%'; | 49 keyframe.keyText = '20%'; |
| 51 assert_equals(parseInt(getComputedStyle(target1).left), 450, 'left offset'); | 50 assert_equals(parseInt(getComputedStyle(target1).left), 187, 'left offset'); |
| 52 assert_equals(parseInt(getComputedStyle(target2).left), 300, 'left offset'); | 51 assert_equals(parseInt(getComputedStyle(target2).left), 150, 'left offset'); |
| 53 | 52 |
| 54 }, "Check that changes to keyframe style declarations update the animation acc
ordingly"); | 53 }, "Check that changes to keyframe style declarations update the animation acc
ordingly"); |
| 55 </script> | 54 </script> |
| OLD | NEW |