Backed out changeset 57d71ba078d7 (bug 1932390) for causing wpt failures @ failures_A...
[gecko.git] / layout / reftests / svg / pattern-live-01c.svg
blob46c421b9292e41aa1846105aba006b9e5d0ced08
1 <svg xmlns="http://www.w3.org/2000/svg"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 class="reftest-wait">
5 <script type="application/javascript">
6 document.addEventListener("MozReftestInvalidate", doTest, false);
8 function doTest() {
9 document.getElementById('redsquare').setAttribute('fill', 'green');
10 document.documentElement.removeAttribute('class');
13 </script>
15 <!-- Tests that patterns are live to fill attribute changes in elements referenced through the |use| element. -->
17 <defs>
18 <rect id="redsquare" x="10" y="10" width="10" height="10" fill="red" />
19 </defs>
21 <pattern patternUnits="userSpaceOnUse" id="pat1" width="20" height="20">
22 <use xlink:href="#redsquare" />
23 </pattern>
25 <rect x="25" y="25" width="430" height="60" stroke="black" fill="url(#pat1)" />
27 </svg>