Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / inline / inline-relative-offset-boundingbox.html
blob9a21890d207751908be3284a32d6894cd6410aef
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=91168">Bug 91168</a>: REGRESSION: LayoutInline boundingBox ignores relative position offset');
7 function runTest()
9 inline = document.getElementById("inlineElement");
10 inlineRect = inline.getBoundingClientRect();
11 inlineLeftOffset = parseInt(inline.style.left);
12 parent = inline.parentNode;
13 parentRect = parent.getBoundingClientRect();
14 shouldBe("inlineRect.left", "parentRect.left + inlineLeftOffset");
17 window.onload = runTest;
18 </script>
19 </head>
20 <body>
21 <span id="inlineElement" style="position:relative; left:10px;"></span>
22 </body>
23 </html>