<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" onload="runTest()"> | |
<rect x="10" y="10" width="180" height="180" fill="green"/> | |
<rect transform="translate(200, 0)" x="10" y="10" width="180" height="180" fill="green"/> | |
<script> | |
function runTest() { | |
var svg = document.getElementsByTagName("svg")[0]; | |
svg.setAttribute("width", "400"); | |
if (window.testRunner) | |
testRunner.notifyDone(); | |
} | |
</script> | |
</svg> |