| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <script src="../resources/testharness.js"></script> | |
| 3 <script src="../resources/testharnessreport.js"></script> | |
| 4 <svg> | |
| 5 <stop id="target" offset="0"/> | |
| 6 </svg> | |
| 7 <script> | |
| 8 test(() => { | |
| 9 var animation = target.animate({'svg-offset': '1'}, 1); | |
| 10 assert_equals(target.offset.animVal, 0); | |
| 11 animation.currentTime = 0.5; | |
| 12 assert_equals(target.offset.animVal, 0.5); | |
| 13 animation.currentTime = 0.75; | |
| 14 assert_equals(target.offset.animVal, 0.75); | |
| 15 animation.cancel(); | |
| 16 assert_equals(target.offset.animVal, 0); | |
| 17 }, 'SVG Web Animations should be responsive to changes in animation timing'); | |
| 18 </script> | |
| OLD | NEW |