Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / fixed-to-relative-position-with-absolute-child.html
blob7d697467a3a2909e5cb8ddcd473e49ef8dbbb2f1
1 <!-- Based on fast/repaint/fixed-to-relative-position-with-absolute-child.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='container' class='fixed blue'",
9 "LayoutBlockFlow (positioned) DIV class='absolute green'",
10 "LayoutBlockFlow (relative positioned) DIV id='container' class='fixed blue'",
11 "LayoutBlockFlow (positioned) DIV class='absolute green'",
12 "LayoutBlockFlow BODY",
13 "LayoutBlockFlow (relative positioned) DIV id='container' class='fixed blue'",
14 "LayoutBlockFlow (positioned) DIV class='absolute green'",
16 function paintInvalidationTest()
18 document.getElementById('container').style.position = 'relative';
20 </script>
21 </head>
22 <body style="height:2000px;" onload="runPaintInvalidationTest()">
23 <!-- You should see 2 rectangles touching on one corner in the output: a green one (top left) and a green one. -->
24 <div id="container" style="top: 200px;" class="fixed blue"><div style="top:100px; left:100px;" class="absolute green"></div></div>
25 </body>
26 </html>