WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 229747
Bug 230020
Empty div does not have correct bounding rect
https://bugs.webkit.org/show_bug.cgi?id=230020
Summary
Empty div does not have correct bounding rect
Brad Andalman
Reported
2021-09-07 13:08:59 PDT
Created
attachment 437548
[details]
A simple webpage that illustrates the incorrect bounding rect I use an empty div to indicate a column break. In the attached webpage, this div appears midway through the second column. And, yet, the most recent version of Safari Technology Preview (15.0, WebKit 17612.2.2) reports the bounding client rect as [0, 0, 0, 0]. This is not correct: while it doesn't have a height, it is clearly not positioned at [0,0]. The rect is correctly reported on Safari 14.1.2. I've also checked Chrome, just for fun, and that works as I'd expect too.
Attachments
A simple webpage that illustrates the incorrect bounding rect
(2.64 KB, text/html)
2021-09-07 13:08 PDT
,
Brad Andalman
no flags
Details
Correct rect in Safari 14.1.2
(666.37 KB, image/png)
2021-09-07 13:09 PDT
,
Brad Andalman
no flags
Details
Incorrect rect in Safari 15.0, WebKit 17612.2.2
(281.81 KB, image/png)
2021-09-07 13:10 PDT
,
Brad Andalman
no flags
Details
Rect in Chrome
(326.39 KB, image/png)
2021-09-07 13:10 PDT
,
Brad Andalman
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Brad Andalman
Comment 1
2021-09-07 13:09:47 PDT
Created
attachment 437549
[details]
Correct rect in Safari 14.1.2
Brad Andalman
Comment 2
2021-09-07 13:10:23 PDT
Created
attachment 437550
[details]
Incorrect rect in Safari 15.0, WebKit 17612.2.2
Brad Andalman
Comment 3
2021-09-07 13:10:42 PDT
Created
attachment 437551
[details]
Rect in Chrome
Simon Fraser (smfr)
Comment 4
2021-09-07 14:14:19 PDT
*** This bug has been marked as a duplicate of
bug 229747
***
Simon Fraser (smfr)
Comment 5
2021-09-07 16:25:48 PDT
I confirmed that was was fixed in
r282063
.
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