Backed out 6 changesets (bug 1921980) for causing wrench bustages. CLOSED TREE
[gecko.git] / layout / reftests / svg / dynamic-class-01.svg
blob27b64d69e056db2fd881678948313f09f2e06c1b
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <svg class="reftest-wait" xmlns="http://www.w3.org/2000/svg">
6 <title>Test invalidation on setting .className.baseVal</title>
7 <style type="text/css">
9 .lime { fill: lime; }
11 </style>
12 <script>
14 document.addEventListener("MozReftestInvalidate", doTest, false);
15 setTimeout(doTest, 4000); // fallback for running outside reftest
17 function doTest() {
18 document.getElementById('rect').className.baseVal = 'lime';
19 document.documentElement.removeAttribute('class');
22 </script>
23 <rect id="rect" width="100%" height="100%" fill="red"/>
24 </svg>