Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / should-not-clip-composited-viewport-scrolling-layer.html
blob171e3cf7148070285e1d84484666966285ac23b5
1 <!-- Based on compositing/repaint/should-not-clip-composited-viewport-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 window.expectedPaintInvalidationObjects = [
8 "LayoutBlockFlow DIV id='content'",
9 ];
10 function paintInvalidationTest() {
11 document.getElementById('content').style.backgroundColor = 'green';
12 window.scrollTo(2000, 2000);
14 window.onload = runPaintInvalidationTest;
15 </script>
16 <style>
17 #content {
18 width: 5000px;
19 height: 5000px;
20 background-color: red;
22 </style>
23 <div id="content">
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.
28 </div>