| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 3 <script> | 3 <script> |
| 4 function repaintTest() { | 4 function repaintTest() { |
| 5 document.getElementById("rect").setAttribute('fill', 'green'); | 5 document.getElementById("rect").setAttribute('fill', 'green'); |
| 6 } | 6 } |
| 7 onload = function() { | 7 onload = function() { |
| 8 window.scrollTo(400, 400); | 8 window.scrollTo(400, 400); |
| 9 runRepaintTest(); | 9 runRepaintAndPixelTest(); |
| 10 } | 10 } |
| 11 </script> | 11 </script> |
| 12 <style> | 12 <style> |
| 13 div { | 13 div { |
| 14 position: absolute; | 14 position: absolute; |
| 15 top: 400px; | 15 top: 400px; |
| 16 left: 400px; | 16 left: 400px; |
| 17 width:100px; | 17 width:100px; |
| 18 height:100px; | 18 height:100px; |
| 19 } | 19 } |
| 20 body { | 20 body { |
| 21 margin: 0; | 21 margin: 0; |
| 22 width: 2000px; | 22 width: 2000px; |
| 23 height: 2000px; | 23 height: 2000px; |
| 24 } | 24 } |
| 25 </style> | 25 </style> |
| 26 Tests if svg is correctly repainted in a scrolled view. The result repaint rects
should contain (400, 400, 100, 100) only. | 26 Tests if svg is correctly repainted in a scrolled view. The result repaint rects
should contain (400, 400, 100, 100) only. |
| 27 <div> | 27 <div> |
| 28 <svg id="svg" height="100" width="100" viewbox="0 0 100 100"> | 28 <svg id="svg" height="100" width="100" viewbox="0 0 100 100"> |
| 29 <rect id="rect" width="100" height="100" fill="red"/> | 29 <rect id="rect" width="100" height="100" fill="red"/> |
| 30 </svg> | 30 </svg> |
| 31 </div> | 31 </div> |
| OLD | NEW |