blob: adf1e19669db6d8d6fb60ac02d583005459d29ad [file] [log] [blame]
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Test invalidation on setting .className.baseVal</title>
<style type="text/css">
.lime { fill: lime; }
</style>
<script>
function doTest() {
document.getElementById('rect').className.baseVal = 'lime';
document.documentElement.removeAttribute('class');
if (window.testRunner)
testRunner.notifyDone();
}
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(doTest, 100);
</script>
<rect id="rect" width="100%" height="100%" fill="red"/>
</svg>