Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / should-not-clip-composited-overflow-scrolling-layer.html
blobdad62981900880c53c281c6e3e53e79ab7779293
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 window.expectedPaintInvalidationObjects = [
8 "LayoutBlockFlow DIV id='content'",
9 "LayoutBlockFlow DIV id='content'",
10 "##ALL##",
11 "##ALL##",
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;
20 </script>
21 <style>
22 #container {
23 width: 500px;
24 height: 500px;
25 overflow: scroll;
27 #content {
28 width: 5000px;
29 height: 5000px;
30 background-color: red;
32 </style>
33 <div id="container">
34 <div id="content">
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.
39 </div>
40 </div>