| OLD | NEW |
| 1 <script src="../resources/testharness.js"></script> | 1 <script src="../../resources/testharness.js"></script> |
| 2 <script src="../resources/testharnessreport.js"></script> | 2 <script src="../../resources/testharnessreport.js"></script> |
| 3 | 3 |
| 4 <div id="cssTarget"></div> | 4 <div id="cssTarget"></div> |
| 5 <svg> | 5 <svg> |
| 6 <rect id="svgTarget" color="red"></rect> | 6 <rect id="svgTarget" color="red"></rect> |
| 7 </svg> | 7 </svg> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 internals.disableCSSAdditiveAnimations(); | 10 internals.disableCSSAdditiveAnimations(); |
| 11 | 11 |
| 12 test(() => { | 12 test(() => { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 29 animation.cancel(); | 29 animation.cancel(); |
| 30 }, 'Neutral keyframes supported for SVG presentation attributes.'); | 30 }, 'Neutral keyframes supported for SVG presentation attributes.'); |
| 31 | 31 |
| 32 test(() => { | 32 test(() => { |
| 33 var keyframe = {'svg-color': 'green', composite: 'add'}; | 33 var keyframe = {'svg-color': 'green', composite: 'add'}; |
| 34 var animation = svgTarget.animate([keyframe, keyframe], {fill: 'forwards'}); | 34 var animation = svgTarget.animate([keyframe, keyframe], {fill: 'forwards'}); |
| 35 assert_equals(getComputedStyle(svgTarget).color, 'rgb(255, 128, 0)'); | 35 assert_equals(getComputedStyle(svgTarget).color, 'rgb(255, 128, 0)'); |
| 36 animation.cancel(); | 36 animation.cancel(); |
| 37 }, 'Additive keyframes supported for SVG presentation attributes.'); | 37 }, 'Additive keyframes supported for SVG presentation attributes.'); |
| 38 </script> | 38 </script> |
| OLD | NEW |