blob: b8d765085ba5fb94efe56eb387124e069e72164f [file] [log] [blame]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runTest()">
<script><![CDATA[
function runTest()
{
var node = document.createElementNS("http://www.w3.org/2000/svg" , "rect");
node.setAttributeNS(null , "x" , "0");
node.setAttributeNS(null , "y" , "0");
node.setAttributeNS(null , "width", "100");
node.setAttributeNS(null , "height" , "100");
node.setAttributeNS(null , "fill" , "green");
document.getElementById("groupA").appendChild(node)
}
]]></script>
<g id="groupA">
</g>
<use xlink:href="#groupA"/>
<text x="10" y="120" font-size="15">This test tries to change a container referenced by a &lt;use&gt;.</text>
<text x="10" y="140" font-size="15">If it is successful, there should be a green rect above. Bug 15080.</text>
</svg>