OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" |
2 width="300" height="300" onload="runRepaintTest()"> | 2 width="300" height="300" onload="runRepaintAndPixelTest()"> |
3 <script xlink:href="../../fast/repaint/resources/repaint.js" /> | 3 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js" /> |
4 <script><![CDATA[ | 4 <script><![CDATA[ |
5 function repaintTest() { | 5 function repaintTest() { |
6 document.getElementById("inner").setAttribute("viewBox", "0 0 200 200"); | 6 document.getElementById("inner").setAttribute("viewBox", "0 0 200 200"); |
7 } | 7 } |
8 ]]></script> | 8 ]]></script> |
9 <!-- blue rect's lower right edges should be visible after viewbox resizing --> | 9 <!-- blue rect's lower right edges should be visible after viewbox resizing --> |
10 <rect width="200" height="200" fill="blue"/> | 10 <rect width="200" height="200" fill="blue"/> |
11 <svg id="inner" width="200" height="200" viewBox="0 0 100 100" preserveAspectRat
io="none"> | 11 <svg id="inner" width="200" height="200" viewBox="0 0 100 100" preserveAspectRat
io="none"> |
12 <rect width="100" height="100" fill="green"/> | 12 <rect width="100" height="100" fill="green"/> |
13 </svg> | 13 </svg> |
14 </svg> | 14 </svg> |
OLD | NEW |