Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / fixed-after-scroll.html
blobf89337765684d20f8d8b278f1af529d36a5259eb
1 <!-- Based on fast/repaint/fixed-after-scroll.html -->
2 <html>
3 <head>
4 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css">
5 <script src="resources/paint-invalidation-test.js"></script>
6 <script>
7 window.onload = function() {
8 window.scrollTo(0, 500);
9 runPaintInvalidationTest();
12 window.expectedPaintInvalidationObjects = [
13 "LayoutBlockFlow (positioned) DIV id='t' class='green absolute'",
14 "LayoutBlockFlow (positioned) DIV id='t' class='green absolute'",
16 function paintInvalidationTest()
18 document.getElementById('t').style.position = "fixed";
20 </script>
21 </head>
23 <body style="height:2000px;">
24 <!-- Repaint test for https://bugs.webkit.org/show_bug.cgi?id=64650: Layer fixed position logic needs more basic testing -->
25 <!-- You should see no red on this page. -->
26 <div style="top: 200px;" class="red fixed"></div>
27 <div id="t" style="top: 200px;" class="green absolute"></div>
28 </body>
29 </html>