layout/reftests/svg/dynamic-use-05.svg

branch
TOR_BUG_9701
changeset 11
deefc01c0e14
equal deleted inserted replaced
-1:000000000000 0:db0c80144a30
1 <?xml version="1.0" encoding="Windows-1252"?>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <svg xmlns="http://www.w3.org/2000/svg"
7 xmlns:xlink="http://www.w3.org/1999/xlink"
8 style="background: red;" class="reftest-wait">
9 <defs>
10 <symbol id="sym1">
11 <rect width="100" height="100" fill="lime" />
12 </symbol>
13 </defs>
14 <rect width="100%" height="100%" fill="lime"/>
15 <rect width="100" height="100" fill="red" />
16 <use id="u" xlink:href="#sym1" width="1" />
17 <script type="text/javascript">
18 <![CDATA[
19
20 document.addEventListener("MozReftestInvalidate", doTest, false);
21 setTimeout(doTest, 4000); // fallback for running outside reftest
22
23 function doTest() {
24 var u = document.getElementById("u");
25 u.setAttribute("width", "100");
26 document.documentElement.removeAttribute('class');
27 }
28
29 ]]>
30 </script>
31 </svg>

mercurial