Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / offset-parent-positioned-and-inline.html
blobb97fb5ba650ee548805c17b5627201ffc9adb1d7
1 <html>
2 <body>
3 <div style="position:relative; display:inline; border:1px solid black">Div
4 <a id="anchor" style="border:1px solid red">Anchor</a>
5 </div>
6 <br><br>
7 <span id="result">FAIL! This test has failed because the offsetParent of the anchor is coming back as null :-(</span>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
12 var anchor = document.getElementById("anchor");
13 var result = document.getElementById("result");
14 if (anchor.offsetParent)
15 result.innerHTML = "Success! This test succeeded because the div is rightly recognized as the anchor's offsetParent :-)";
16 </script>
17 </body>
18 </html>