OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 <script> | 4 <script> |
5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=91451">Bug
91451</a>: REGRESSION: RenderInline::absoluteQuads produces incorrect results f
or fixed position.'); | 5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=91451">Bug
91451</a>: REGRESSION: RenderInline::absoluteQuads produces incorrect results f
or fixed position.'); |
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 parent = inline.parentNode; | 11 parent = inline.parentNode; |
12 parentRect = parent.getBoundingClientRect(); | 12 parentRect = parent.getBoundingClientRect(); |
13 shouldBe("inlineRect.left", "parentRect.left"); | 13 shouldBe("inlineRect.left", "parentRect.left"); |
14 } | 14 } |
15 | 15 |
16 window.onload = runTest; | 16 window.onload = runTest; |
17 </script> | 17 </script> |
18 </head> | 18 </head> |
19 <body> | 19 <body> |
20 <div style="position:fixed"> | 20 <div style="position:fixed"> |
21 <span id="inlineElement"></span> | 21 <span id="inlineElement"></span> |
22 </div> | 22 </div> |
23 <script src="../js/resources/js-test-post.js"></script> | |
24 </body> | 23 </body> |
25 </html> | 24 </html> |
OLD | NEW |