no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / reftests / svg / dynamic-use-04.svg
blob9fa46322091d04d9cf4d38599ee9234953d8811d
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
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">
8 <defs>
9 <symbol id="r">
10 <rect fill="lime" width="100%" height="100%"/>
11 </symbol>
12 </defs>
13 <use id="u" xlink:href="#r" width="0" />
14 <script type="text/javascript">
15 <![CDATA[
17 document.addEventListener("MozReftestInvalidate", doTest, false);
18 setTimeout(doTest, 4000); // fallback for running outside reftest
20 function doTest() {
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');
29 ]]>
30 </script>
31 </svg>