OLD | NEW |
1 <?xml version="1.0" standalone="no"?> | 1 <?xml version="1.0" standalone="no"?> |
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SV
G-20010904/DTD/svg10.dtd"> | 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SV
G-20010904/DTD/svg10.dtd"> |
3 <svg width="2cm" height="2cm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="ht
tp://www.w3.org/1999/xlink" onload="runRepaintTest()"> | 3 <svg width="2cm" height="2cm" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="ht
tp://www.w3.org/1999/xlink" onload="runRepaintAndPixelTest()"> |
4 <script xlink:href="../../fast/repaint/resources/repaint.js"/> | 4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> |
5 <script> | 5 <script> |
6 function repaintTest() { | 6 function repaintTest() { |
7 document.getElementById("group").setAttribute("stroke", "green"); | 7 document.getElementById("group").setAttribute("stroke", "green"); |
8 document.getElementById("group").setAttribute("transform", "scale(0.5)"); | 8 document.getElementById("group").setAttribute("transform", "scale(0.5)"); |
9 } | 9 } |
10 </script> | 10 </script> |
11 | 11 |
12 <g id="group" stroke-width="5px"> | 12 <g id="group" stroke-width="5px"> |
13 <rect width="2cm" height="2cm" fill="navy"/> | 13 <rect width="2cm" height="2cm" fill="navy"/> |
14 </g> | 14 </g> |
15 </svg> | 15 </svg> |
OLD | NEW |