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