Created attachment 176287 [details] Test case Range.getClientRects() and Range.getBoundingClientRect() consider overflow content of children that is hidden by overflow:hidden. Horizontally and vertically overflown content is included. Attached is a reduced test case. The test case works as expected in Firefox 17.0 and Opera 12.11 (the alert message should be "bcr.width = 14, bcr.height = 54"), but it fails in Safari 6.0.2, Safari 5.0.5, Chrome 23.0.1271.91, and the latest WebKit nightly r135851 built on 27 November 2012. Possibly related: Bug 103150 - Range.getBoundingClientRect() does not handle max-height correctly
*** This bug has been marked as a duplicate of bug 103658 ***
https://bugzilla.mozilla.org/show_bug.cgi?id=816238
*** Safari 15.6 on macOS 12.5 *** bcr.width = 197.5234375, bcr.height = 200 *** Chrome Canary 106 *** bcr.width = 197.5234375, bcr.height = 205.5 *** Firefox Nightly 105 *** bcr.width = 14, bcr.height = 54 ________ I am not sure on correct behavior or expected result aligned with web-spec but as per Comment 0, Firefox is correct here. Just wanted to share updated results for reference. Thanks!
<rdar://problem/97935682>