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