blob: cd67cbed0b8a9cfad545f01c892bed295480092e [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>