blob: 35fe9edb19042ddcc74d551cab9d8feab8b455ca [file] [log] [blame]
<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>