2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
5 internals.settings.setPreferCompositingToLCDTextEnabled(true);
6 function repaintTest() {
7 document.getElementById('content').style.backgroundColor = 'green';
8 var container = document.getElementById('container');
9 container.scrollLeft = 2000;
10 container.scrollTop = 2000;
12 window.onload = runRepaintTest;
23 background-color: red;
28 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipped,
29 and there is no red when the scrolling container is scrolled.<br>
30 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text
31 on non-high-dpi machines to enable composited scrolling.