3 <script src=
"../../resources/js-test.js"></script>
5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=91168">Bug 91168</a>: REGRESSION: LayoutInline boundingBox ignores relative position offset');
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
;
21 <span id=
"inlineElement" style=
"position:relative; left:10px;"></span>