blob: a8d6f9e8de824308f7454b2dd523ac92e15d9ca4 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<svg onload="init()" width="200" height="200" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400">
<script>
<![CDATA[
function init() {
document.rootElement.setAttribute("viewBox", "0 0 20 20");
}
]]>
</script>
<rect fill="red" width="40" height="40"/>
<rect fill="green" width="20" height="20"/>
</svg>