2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
5 <svg xmlns=
"http://www.w3.org/2000/svg"
6 xmlns:
xlink=
"http://www.w3.org/1999/xlink"
7 style=
"background: red;" class=
"reftest-wait">
10 <rect fill=
"lime" width=
"100%" height=
"100%"/>
13 <use id=
"u" xlink:
href=
"#r" width=
"0" />
14 <script type=
"text/javascript">
17 document.addEventListener(
"MozReftestInvalidate", doTest, false);
18 setTimeout(doTest,
4000); // fallback for running outside reftest
21 // Setting a non-zero value for width here should show the entire
22 // referenced
<rect>. See
23 // https://www.w3.org/TR/SVG2/struct.html#UseElement
24 var u = document.getElementById(
"u");
25 u.setAttribute(
"width",
"100%");
26 document.documentElement.removeAttribute('class');