13 lines
374 B
XML
13 lines
374 B
XML
<?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>
|