| OLD | NEW |
| 1 <svg width="800" height="600" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="ht
tp://www.w3.org/1999/xlink" onload="runRepaintTest()"> | 1 <svg width="800" height="600" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="ht
tp://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()"> |
| 2 <script xlink:href="../../fast/repaint/resources/repaint.js"/> | 2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> |
| 3 <defs> | 3 <defs> |
| 4 <clipPath id="myclip" clipPathUnits="userSpaceOnUse"> | 4 <clipPath id="myclip" clipPathUnits="userSpaceOnUse"> |
| 5 <path transform="scale(1.0)" d="M 0 0 l 200 0 l 0 200 l -200 0 Z"/> | 5 <path transform="scale(1.0)" d="M 0 0 l 200 0 l 0 200 l -200 0 Z"/> |
| 6 </clipPath> | 6 </clipPath> |
| 7 </defs> | 7 </defs> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 function repaintTest() { | 10 function repaintTest() { |
| 11 var clip = document.getElementById("myclip"); | 11 var clip = document.getElementById("myclip"); |
| 12 var path = clip.firstChild.nextSibling; | 12 var path = clip.firstChild.nextSibling; |
| 13 path.setAttribute("transform", "scale(0.5)"); | 13 path.setAttribute("transform", "scale(0.5)"); |
| 14 } | 14 } |
| 15 </script> | 15 </script> |
| 16 | 16 |
| 17 <g clip-path="url(#myclip)"> | 17 <g clip-path="url(#myclip)"> |
| 18 <rect x="0" y="0" width="200" height="200" fill="red"/> | 18 <rect x="0" y="0" width="200" height="200" fill="red"/> |
| 19 <rect x="0" y="0" width="100" height="100" fill="green"/> | 19 <rect x="0" y="0" width="100" height="100" fill="green"/> |
| 20 </g> | 20 </g> |
| 21 | 21 |
| 22 </svg> | 22 </svg> |
| OLD | NEW |