blob: 6882b18edfd54d952d19eab9868feabd7f4caf1c [file] [log] [blame]
<svg width="800" height="600" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="runRepaintTest()">
<script xlink:href="../../fast/repaint/resources/repaint.js"/>
<defs>
<clipPath id="myclip" clipPathUnits="userSpaceOnUse">
<path transform="scale(1.0)" d="M 0 0 l 200 0 l 0 200 l -200 0 Z"/>
</clipPath>
</defs>
<script>
function repaintTest() {
var clip = document.getElementById("myclip");
var path = clip.firstChild.nextSibling;
path.setAttribute("transform", "scale(0.5)");
}
</script>
<g clip-path="url(#myclip)">
<rect x="0" y="0" width="200" height="200" fill="red"/>
<rect x="0" y="0" width="100" height="100" fill="green"/>
</g>
</svg>