1 <svg width=
"800" height=
"600" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" onload=
"runRepaintAndPixelTest()">
2 <script xlink:
href=
"../../fast/repaint/resources/text-based-repaint.js"/>
4 <clipPath id=
"myclip" clipPathUnits=
"userSpaceOnUse">
5 <path transform=
"scale(.5)" d=
"M 0 0 l 200 0 l 0 200 l -200 0 Z"/>
10 function repaintTest() {
11 document.getElementsByTagName(
"g")[
0].setAttribute(
"clip-path",
"url(#myclip)");
15 <g clip-path=
"url(#noclip)">
16 <rect x=
"0" y=
"0" width=
"200" height=
"200" fill=
"red"/>
17 <rect x=
"0" y=
"0" width=
"100" height=
"100" fill=
"green"/>