Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / fixed-and-absolute-position-scrolled.html
blobe8e4d79d6c72ca8e94f9f191466470ea28a2652d
1 <!-- Based on fast/repaint/fixed-and-absolute-position-scrolled.html -->
2 <html>
3 <head>
4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
5 <script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
6 <script type="text/javascript">
7 if (window.testRunner)
8 testRunner.dumpAsTextWithPixelResults();
10 window.onload = function() {
11 window.scrollTo(0, 500);
12 runPaintInvalidationTest();
15 window.expectedPaintInvalidationObjects = [
16 "LayoutView #document",
17 "LayoutBlockFlow HTML",
18 "LayoutBlockFlow DIV id='container' class='relative'",
19 "LayoutBlockFlow (positioned) DIV id='absoluteDiv' class='absolute green'",
21 function paintInvalidationTest()
23 document.getElementById('container').style.position = 'static';
25 </script>
26 </head>
27 <body style="height:2000px;">
28 <!-- You should see 1 green rectangle in the output and no red. -->
29 <div style="top: 200px; left: 100px;" class="fixed red"></div>
30 <div id="container" style="top: 5000px;" class="relative"><div id="absoluteDiv" style="top: 700px; left:100px;" class="absolute green"></div></div>
31 </body>
32 </html>