blob: e59f41a29852eed64618b76a7e29c0abdf73094b [file] [log] [blame]
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<svg>
<rect id="target"/>
</svg>
<script>
test(() => {
target.animate({color: 'green'}, {fill: 'forwards'});
target.animate({'svg-color': 'red'}, {fill: 'forwards'});
assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)');
}, 'CSS animations always override SVG presentation attribute animations');
</script>