Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / absolute-position-moved.html
blob60bcf1c8929882642852eae436681f2428dc8ed8
1 <!-- Based on fast/repaint/absolute-position-moved.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 window.expectedPaintInvalidationObjects = [
8 "LayoutBlockFlow (positioned) DIV id='absoluteDiv' class='absolute green'",
9 "LayoutBlockFlow (positioned) DIV id='absoluteDiv' class='absolute green'",
11 function paintInvalidationTest()
13 var absoluteDiv = document.getElementById('absoluteDiv');
14 absoluteDiv.parentNode.removeChild(absoluteDiv);
15 document.body.appendChild(absoluteDiv);
17 </script>
18 </head>
19 <body style="height:2000px;" onload="runPaintInvalidationTest()">
20 <!-- You should see 1 green rectangle in the output and no red. -->
21 <div style="top: 5000px;" class="fixed red"><div id="absoluteDiv" style="top:100px; left:100px;" class="absolute green"></div></div>
22 </body>
23 </html>