| OLD | NEW |
| (Empty) |
| 1 <!-- Based on compositing/repaint/should-not-clip-composited-overflow-scrolling-
layer.html --> | |
| 2 <!DOCTYPE HTML> | |
| 3 <script src="resources/paint-invalidation-test.js"></script> | |
| 4 <script> | |
| 5 if (window.internals) | |
| 6 internals.settings.setPreferCompositingToLCDTextEnabled(true); | |
| 7 function paintInvalidationTest() { | |
| 8 document.getElementById('content').style.backgroundColor = 'green'; | |
| 9 var container = document.getElementById('container'); | |
| 10 container.scrollLeft = 2000; | |
| 11 container.scrollTop = 2000; | |
| 12 } | |
| 13 window.onload = runPaintInvalidationTest; | |
| 14 </script> | |
| 15 <style> | |
| 16 #container { | |
| 17 width: 500px; | |
| 18 height: 500px; | |
| 19 overflow: scroll; | |
| 20 } | |
| 21 #content { | |
| 22 width: 5000px; | |
| 23 height: 5000px; | |
| 24 background-color: red; | |
| 25 } | |
| 26 </style> | |
| 27 <div id="container"> | |
| 28 <div id="content"> | |
| 29 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipp
ed, | |
| 30 and there is no red when the scrolling container is scrolled.<br> | |
| 31 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text | |
| 32 on non-high-dpi machines to enable composited scrolling. | |
| 33 </div> | |
| 34 </div> | |
| OLD | NEW |