1 <!-- Based on compositing/repaint/should-not-clip-composited-viewport-scrolling-layer.html -->
3 <script src=
"resources/paint-invalidation-test.js"></script>
6 internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
7 window
.expectedPaintInvalidationObjects
= [
8 "LayoutBlockFlow DIV id='content'",
10 function paintInvalidationTest() {
11 document
.getElementById('content').style
.backgroundColor
= 'green';
12 window
.scrollTo(2000, 2000);
14 window
.onload
= runPaintInvalidationTest
;
20 background-color: red;
24 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipped,
25 and there is no red when the scrolling container is scrolled.
<br>
26 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text
27 on non-high-dpi machines to enable composited scrolling.