WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
184303
Element.getClientRects returns only the first box fragment of fragmented elements
https://bugs.webkit.org/show_bug.cgi?id=184303
Summary
Element.getClientRects returns only the first box fragment of fragmented elem...
Matt Curtis
Reported
2018-04-04 08:23:24 PDT
Created
attachment 337170
[details]
An example document demonstrating the issue. Overview: The W3C specification (
https://drafts.csswg.org/cssom-view/#dom-element-getclientrects
) states that Element.getClientRects should return the all box fragments for fragmented elements, however WebKit's implementation only seems to return the first. Steps to Reproduce: 1) Create a document where the body is fragmented using (column-count: 2). See attached example document. 2) Run Element.getClientRects() on the first child element of the body. Expected Results: Both box fragments are returned. Build Date & Hardware: Safari Technology Preview 52, macOS 10.13.4. Additional Builds and Platforms: Observed in simulator and on-device for iOS 11.3. Additional Information: None.
Attachments
An example document demonstrating the issue.
(281 bytes, text/html)
2018-04-04 08:23 PDT
,
Matt Curtis
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2022-07-27 04:08:44 PDT
I am not sure on expected beahvior but in attached test case, these are results across browsers: *** Safari 15.6 on macOS 12.5 *** Box fragment count: 2 it shows same on iOS 15.6 using iPhone 13 Pro Max. *** Chrome Canary 106 *** Box fragment count: 2 *** Firefox Nightly 105 *** Box fragment count: 1 ___ Going by
Comment 0
, Safari is returning both box fragments and this is bug in Firefox but I am not clear on web-spec so I would just share updated test results here. Thanks!
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