Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / scroll-fixed-layer-with-no-visible-content.html
blobcb95e011e53bbf9182e3b8c3439fb3c66e822495
1 <!-- Based on fast/repaint/scroll-fixed-layer-with-no-visible-content.html -->
2 <html>
3 <head>
4 <title></title>
5 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"></style>
6 <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
7 <script type="text/javascript">
8 window.onload = function() {
9 window.scrollTo(1000, 1000);
10 runPaintInvalidationTest();
13 window.expectedPaintInvalidationObjects = [
14 "LayoutBlockFlow (positioned) DIV id='moveMe' class='fixed clipped'",
15 "LayoutBlockFlow (positioned) DIV class='absolute green'",
17 function paintInvalidationTest()
19 var moveMeElement = document.getElementById('moveMe');
20 moveMeElement.style.visibility = "visible";
21 moveMeElement.scrollTop = 100;
22 moveMeElement.scrollLeft = 150;
24 </script>
25 </head>
26 <body style="height:2000px;">
27 <!-- You should see 1 green rectangle in the output and no red. -->
28 <div id="moveMe" style="top: 150px; left: 100px; visibility: hidden" class="fixed clipped"><div class="absolute green" style="top: 100px; left: 150px;"></div></div>
29 <!-- Make sure we are scrolled -->
30 <div style="top: 0px; left: 0px;" class="absolute red"></div>
31 </body>
32 </html>