WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
102714
Range.getBoundingClientRect() does not include the height of leading or trailing BR elements
https://bugs.webkit.org/show_bug.cgi?id=102714
Summary
Range.getBoundingClientRect() does not include the height of leading or trail...
Daniel Trebbien
Reported
2012-11-19 14:21:58 PST
Created
attachment 175040
[details]
Reduced test case When a Range is created starting before a BR element or ending after a BR element, the height of the bounding client rectangle obtained by calling the Range.getBoundingClientRect() CSSOM View method does not include the height of the leading and/or trailing BR elements. Attached is a reduced test case. The test case (also available at
http://jsfiddle.net/TxAKf/
) works as expected in Firefox since version 4, including the latest version, 16.0.2, but does not work in Safari 6.0.2, Chrome 23.0.1271.64, Chrome 25.0.1329.0 canary, or the latest WebKit nightly
r134433
built on 13 November 2012.
Attachments
Reduced test case
(1.05 KB, text/html)
2012-11-19 14:21 PST
,
Daniel Trebbien
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2022-07-26 13:33:24 PDT
I am unable to reproduce this bug in Safari 15.6 on macOS 12.5 and it shows following dialog - "test case passed" and similar is the case with Firefox Nightly 104. Only Chrome Canary 105 shows different dialog with following text - "testBCR.height (18.5) < referenceBCR.height (166.5)". I am not sure on expected behavior or web-spec but this is what I am getting. Thanks!
Radar WebKit Bug Importer
Comment 2
2022-07-26 15:02:21 PDT
<
rdar://problem/97630736
>
Ryosuke Niwa
Comment 3
2022-07-26 21:42:11 PDT
Yeah, Safari passes the test now.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug