OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <script> | 4 <script> |
5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=91168">Bug
91168</a>: REGRESSION: RenderInline boundingBox ignores relative position offse
t'); | 5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=91168">Bug
91168</a>: REGRESSION: RenderInline boundingBox ignores relative position offse
t'); |
6 | 6 |
7 function runTest() | 7 function runTest() |
8 { | 8 { |
9 inline = document.getElementById("inlineElement"); | 9 inline = document.getElementById("inlineElement"); |
10 inlineRect = inline.getBoundingClientRect(); | 10 inlineRect = inline.getBoundingClientRect(); |
11 inlineLeftOffset = parseInt(inline.style.left); | 11 inlineLeftOffset = parseInt(inline.style.left); |
12 parent = inline.parentNode; | 12 parent = inline.parentNode; |
13 parentRect = parent.getBoundingClientRect(); | 13 parentRect = parent.getBoundingClientRect(); |
14 shouldBe("inlineRect.left", "parentRect.left + inlineLeftOffset"); | 14 shouldBe("inlineRect.left", "parentRect.left + inlineLeftOffset"); |
15 } | 15 } |
16 | 16 |
17 window.onload = runTest; | 17 window.onload = runTest; |
18 </script> | 18 </script> |
19 </head> | 19 </head> |
20 <body> | 20 <body> |
21 <span id="inlineElement" style="position:relative; left:10px;"></span> | 21 <span id="inlineElement" style="position:relative; left:10px;"></span> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |