OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runRepaintTest()"> | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runRepaintAndPixelTest()"> |
2 <script xlink:href="../../fast/repaint/resources/repaint.js" type="text/javascri
pt"></script> | 2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js" type="te
xt/javascript"></script> |
3 <script type="text/javascript"> | 3 <script type="text/javascript"> |
4 function repaintTest() { | 4 function repaintTest() { |
5 document.getElementById('mover').setAttribute('y', 100); | 5 document.getElementById('mover').setAttribute('y', 100); |
6 } | 6 } |
7 </script> | 7 </script> |
8 <!-- After repositioning, the red rect should be completely hidden behind the
second green rect. --> | 8 <!-- After repositioning, the red rect should be completely hidden behind the
second green rect. --> |
9 | 9 |
10 <g> | 10 <g> |
11 <rect fill="green" width="100" height="100"/> | 11 <rect fill="green" width="100" height="100"/> |
12 | 12 |
13 <svg id="mover" y="50"> | 13 <svg id="mover" y="50"> |
14 <rect fill="red" ay="50" width="100" height="50"/> | 14 <rect fill="red" ay="50" width="100" height="50"/> |
15 </svg> | 15 </svg> |
16 | 16 |
17 <rect y="100" fill="green" width="100" height="50"/> | 17 <rect y="100" fill="green" width="100" height="50"/> |
18 </g> | 18 </g> |
19 </svg> | 19 </svg> |
OLD | NEW |