1 <svg xmlns=
"http://www.w3.org/2000/svg"
2 xmlns:
xlink=
"http://www.w3.org/1999/xlink"
5 <script type=
"application/javascript">
6 document.addEventListener(
"MozReftestInvalidate", doTest, false);
9 document.getElementById('redsquare').setAttribute('fill', 'green');
10 document.documentElement.removeAttribute('class');
15 <!-- Tests that patterns are live to fill attribute changes in elements referenced through the |use| element. -->
18 <rect id=
"redsquare" x=
"10" y=
"10" width=
"10" height=
"10" fill=
"red" />
21 <pattern patternUnits=
"userSpaceOnUse" id=
"pat1" width=
"20" height=
"20">
22 <use xlink:
href=
"#redsquare" />
25 <rect x=
"25" y=
"25" width=
"430" height=
"60" stroke=
"black" fill=
"url(#pat1)" />