1 <!-- Based on compositing/repaint/should-not-clip-composited-overflow-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'",
9 "LayoutBlockFlow DIV id='content'",
13 function paintInvalidationTest() {
14 document
.getElementById('content').style
.backgroundColor
= 'green';
15 var container
= document
.getElementById('container');
16 container
.scrollLeft
= 2000;
17 container
.scrollTop
= 2000;
19 window
.onload
= runPaintInvalidationTest
;
30 background-color: red;
35 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipped,
36 and there is no red when the scrolling container is scrolled.
<br>
37 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text
38 on non-high-dpi machines to enable composited scrolling.