| OLD | NEW |
| (Empty) |
| 1 <!-- Based on compositing/repaint/scroll-fixed-layer-out-of-view.html --> | |
| 2 <!DOCTYPE html> | |
| 3 <html> | |
| 4 <head> | |
| 5 <script src="resources/paint-invalidation-test.js"></script> | |
| 6 <script type="text/javascript"> | |
| 7 if (window.internals) | |
| 8 internals.settings.setPreferCompositingToLCDTextEnabled(true); | |
| 9 | |
| 10 function paintInvalidationTest() | |
| 11 { | |
| 12 window.scrollTo(0, 1000); | |
| 13 window.scrollTo(0, 100); | |
| 14 } | |
| 15 </script> | |
| 16 </head> | |
| 17 <body style="height:2000px" onload="runPaintInvalidationTest()"> | |
| 18 <div style="position: fixed; top: -300px; left: 100px; width: 88px; height:
88px; background-color: silver"></div> | |
| 19 <div style="position: fixed; top: 1000px; left: 100px; width: 99px; height:
99px; background-color: silver"></div> | |
| 20 There should be no repaints here: | |
| 21 </body> | |
| 22 </html> | |
| OLD | NEW |