| OLD | NEW |
| (Empty) |
| 1 <!-- Based on compositing/overflow/fixed-scroll-in-empty-root-layer.html --> | |
| 2 <!DOCTYPE html> | |
| 3 <script src="resources/paint-invalidation-test.js"></script> | |
| 4 <script> | |
| 5 function paintInvalidationTest() { | |
| 6 window.scrollBy(0, 200); | |
| 7 } | |
| 8 onload = runPaintInvalidationTest; | |
| 9 </script> | |
| 10 <body style="height: 2000px"> | |
| 11 Tests invalidation of fixed element when scrolled in a page with empty root la
yer. Passes if there is no red. | |
| 12 <div style=" | |
| 13 position: fixed; | |
| 14 top: 50px; | |
| 15 left: 0; | |
| 16 width: 100px; | |
| 17 height: 100px; | |
| 18 background: green"> | |
| 19 </div> | |
| 20 <!-- This div makes all of the contents of the page be in sublayers of the roo
t layer, so root layer is empty. --> | |
| 21 <div style=" | |
| 22 position: absolute; | |
| 23 z-index: -1; | |
| 24 backface-visibility: hidden; | |
| 25 top: 250px; | |
| 26 left: 0; | |
| 27 background-color: red; | |
| 28 width: 100px; | |
| 29 height: 100px"> | |
| 30 </div> | |
| 31 </body> | |
| OLD | NEW |