Bug 229747

Summary: REGRESSION (r280017): Calling getBoundingClientRect() on an empty element with "break-before: column" in columns returns a rect with all zeros
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: DOMAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: bya, changseok, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, pdr, simon.fraser, tom.hamming, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case
none
Test case
none
Patch none

Description Simon Fraser (smfr) 2021-08-31 17:30:44 PDT
Calling getBoundingClientRect() on a 0x0 element in columns returns a rect with all zeros.
Comment 1 Simon Fraser (smfr) 2021-08-31 17:30:57 PDT
<rdar://82537314>
Comment 2 Simon Fraser (smfr) 2021-08-31 17:34:01 PDT
Created attachment 436973 [details]
Test case
Comment 3 Simon Fraser (smfr) 2021-08-31 17:38:08 PDT
Conceptually we are trying to answer the question "for this 0x0 rect at y=100, in columns with height 100, is it at the bottom of column 1 or the top of column 2".
Comment 4 Simon Fraser (smfr) 2021-08-31 17:42:57 PDT
Created attachment 436974 [details]
Test case

Ironically Chrome and FF have exactly opposite behaviors.
Comment 5 Simon Fraser (smfr) 2021-09-02 18:54:45 PDT
Created attachment 437230 [details]
Patch
Comment 6 EWS 2021-09-06 12:30:26 PDT
Committed r282063 (241363@main): <https://commits.webkit.org/241363@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 437230 [details].
Comment 7 Simon Fraser (smfr) 2021-09-07 14:14:19 PDT
*** Bug 230020 has been marked as a duplicate of this bug. ***