Bug 243173

Summary: Update intrinsic sizing of flex containers (e.g. container max-content width) to new spec text
Product: WebKit Reporter: David Grogan <dgrogan>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bfulgham, karlcow, sgill26, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=119113
https://bugs.webkit.org/show_bug.cgi?id=289961

David Grogan
Reported 2022-07-25 12:17:55 PDT
All of the engines currently implement the same intrinsic size algorithm for flex containers, but it is not a good algorithm and it is not specified. Authors really want a better algorithm, and the spec calls for one in https://drafts.csswg.org/css-flexbox/#intrinsic-sizes. Blink is planning to launch the new algorithm in the next few months, and it'd be great if the engines could sync up shipping to minimize breakage. We've talked about that some on the Firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=1055887. I didn't see an existing WebKit bug for this, apologies if I missed it. The chrome bugs for this are https://crbug.com/240765 and https://crbug.com/507397, which are the most starred flex bugs in our tracker.
Attachments
David Grogan
Comment 1 2022-07-25 12:18:26 PDT
Oh, the new algorithm would probably supersede this bug about the old algorithm https://bugs.webkit.org/show_bug.cgi?id=119113
Radar WebKit Bug Importer
Comment 2 2022-07-25 19:42:16 PDT
Note You need to log in before you can comment on or make changes to this bug.