Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / svg / custom / use-dynamic-append.svg
blobb8d765085ba5fb94efe56eb387124e069e72164f
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
2 <script><![CDATA[
3 function runTest()
5 var node = document.createElementNS("http://www.w3.org/2000/svg" , "rect");
6 node.setAttributeNS(null , "x" , "0");
7 node.setAttributeNS(null , "y" , "0");
8 node.setAttributeNS(null , "width", "100");
9 node.setAttributeNS(null , "height" , "100");
10 node.setAttributeNS(null , "fill" , "green");
11 document.getElementById("groupA").appendChild(node)
13 ]]></script>
14 <g id="groupA">
15 </g>
16 <use xlink:href="#groupA"/>
17 <text x="10" y="120" font-size="15">This test tries to change a container referenced by a &lt;use&gt;.</text>
18 <text x="10" y="140" font-size="15">If it is successful, there should be a green rect above. Bug 15080.</text>
19 </svg>