Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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('red').setAttribute('fill', 'green');
10 document.documentElement.removeAttribute('class');
11 }
13 </script>
15 <!-- Tests that patterns are live to fill attribute changes. -->
17 <pattern patternUnits="userSpaceOnUse" id="pat1" width="20" height="20">
18 <rect x="10" y="10" width="10" height="10" fill="red" id="red" />
19 </pattern>
21 <rect x="25" y="25" width="430" height="60" stroke="black" fill="url(#pat1)" />
23 </svg>