15 lines
346 B
XML
15 lines
346 B
XML
<svg xmlns="http://www.w3.org/2000/svg">
|
|
<clipPath id="clip1">
|
|
<rect width="200" height="200"/>
|
|
</clipPath>
|
|
|
|
<g clip-path="url(#noclip)">
|
|
<rect width="400" height="400" fill="red"/>
|
|
<rect width="200" height="200" fill="green"/>
|
|
</g>
|
|
|
|
<script>
|
|
document.getElementsByTagName("g")[0].setAttribute("clip-path", "url(#clip1)");
|
|
</script>
|
|
</svg>
|