| 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('container').style.color = "green"; | 5 document.getElementById('container').style.color = "green"; |
| 6 } | 6 } |
| 7 onload = function() { | 7 onload = function() { |
| 8 document.getElementById('container').scrollTop = 50; | 8 document.getElementById('container').scrollTop = 50; |
| 9 runRepaintTest(); | 9 runRepaintAndPixelTest(); |
| 10 }; | 10 }; |
| 11 </script> | 11 </script> |
| 12 <style> | 12 <style> |
| 13 #container { | 13 #container { |
| 14 overflow: scroll; | 14 overflow: scroll; |
| 15 width: 200px; | 15 width: 200px; |
| 16 height: 200px; | 16 height: 200px; |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <div style="height: 100px"> | 19 <div style="height: 100px"> |
| 20 Tests invalidation of scrolling container and contents on change of style which
affects also the contents. | 20 Tests invalidation of scrolling container and contents on change of style which
affects also the contents. |
| 21 Passes if the content text is green, and the whole content layer (if composited
scrolling) is invalidated. | 21 Passes if the content text is green, and the whole content layer (if composited
scrolling) is invalidated. |
| 22 </div> | 22 </div> |
| 23 <div id="container"> | 23 <div id="container"> |
| 24 CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>C
ONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT | 24 CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>C
ONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT<br>CONTENT |
| 25 </div> | 25 </div> |
| OLD | NEW |