Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dynamic / staticY-marking-parents-regression.html
blob66ac631f8e0f863e9fd547472530402ba84037ad
1 <html>
2 <head>
3 <title></title>
4 <script>
5 function test()
7 document.body.offsetTop;
8 var target = document.getElementById("target");
9 target.style.display = "block";
10 var result = document.getElementById("result");
11 if (target.offsetWidth == 100 && target.offsetHeight == 100)
12 result.innerText = "PASS";
13 else {
14 result.innerText = "FAIL";
15 target.style.backgroundColor = "red";
18 </script>
19 </head>
20 <body onload="test()">
21 <p>
22 Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=12818">http://bugs.webkit.org/show_bug.cgi?id=12818</a>
23 REGRESSION (r19148): shacknews.com does not render completely</i>.
24 </p>
25 <p>
26 There should be a green square to the left of the text.
27 </p>
28 <div style="position: absolute;">
29 <div style="margin-left: 100px;">
30 <div style="position: absolute;"></div>
31 <div>
32 Curabitur pretium, quam quis semper malesuada, est libero feugiat libero, vel fringilla orci nibh sed neque. Quisque eu nulla non nisi molestie accumsan. Etiam tellus urna, laoreet ac, laoreet non, suscipit sed, sapien. Phasellus vehicula, sem at posuere vehicula, augue nibh molestie nisl, nec ullamcorper lacus ante vulputate pede. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris viverra augue vitae purus. Morbi sed sem. Donec dui nisi, ultrices non, pretium quis, hendrerit non, est. Donec tellus. Donec eget dui id eros pharetra rutrum. Suspendisse sodales lectus sit amet nulla. Morbi tortor arcu, convallis blandit, elementum eu, aliquet a, tellus.
33 </div>
34 </div>
35 </div>
36 <div id="target" style="display: none; background: green; width: 100px; height: 100px;"></div>
37 <div id="result"></div>
38 </body>