| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | |
| 3 <script> | 2 <script> |
| 4 function repaintTest() { | |
| 5 document.getElementById('container').style.color = "green"; | |
| 6 } | |
| 7 onload = function() { | 3 onload = function() { |
| 8 document.getElementById('container').scrollTop = 50; | 4 document.getElementById('container').scrollTop = 50; |
| 9 runRepaintTest(); | |
| 10 }; | 5 }; |
| 11 </script> | 6 </script> |
| 12 <style> | 7 <style> |
| 13 #container { | 8 #container { |
| 14 overflow: scroll; | 9 overflow: scroll; |
| 15 width: 200px; | 10 width: 200px; |
| 16 height: 200px; | 11 height: 200px; |
| 12 color: green; |
| 17 } | 13 } |
| 18 </style> | 14 </style> |
| 19 <div style="height: 100px"> | 15 <div style="height: 100px"> |
| 20 Tests invalidation of scrolling container and contents on change of style which
affects also the contents. | 16 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. | 17 Passes if the content text is green, and the whole content layer (if composited
scrolling) is invalidated. |
| 22 </div> | 18 </div> |
| 23 <div id="container"> | 19 <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 | 20 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> | 21 </div> |
| OLD | NEW |