OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" width="100" height="100" style="position: static" onload="runRepaintTest()"> | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" width="100" height="100" style="position: static" onload="runRepaintAndPixelT
est()"> |
2 <script xlink:href="../../fast/repaint/resources/repaint.js"/> | 2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> |
3 <rect width="100" height="100" fill="red" /> | 3 <rect width="100" height="100" fill="red" /> |
4 <rect id="rect" width="1" height="1" fill="green" style="position: absolute" /
> | 4 <rect id="rect" width="1" height="1" fill="green" style="position: absolute" /
> |
5 <script> | 5 <script> |
6 <![CDATA[ | 6 <![CDATA[ |
7 function repaintTest() { | 7 function repaintTest() { |
8 var rect = document.getElementById('rect'); | 8 var rect = document.getElementById('rect'); |
9 rect.setAttribute("width", "100"); | 9 rect.setAttribute("width", "100"); |
10 rect.setAttribute("height", "100"); | 10 rect.setAttribute("height", "100"); |
11 } | 11 } |
12 ]]> | 12 ]]> |
13 </script> | 13 </script> |
14 </svg> | 14 </svg> |
OLD | NEW |