Bug 241315

Summary: Implement legacy flexbox as modern flexbox aliases
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bfulgham, gsnedders, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Tim Nguyen (:ntim)
Reported 2022-06-05 03:20:48 PDT
It's worth investigating if legacy flexbox properties (display: -webkit-box) can be implemented as aliases of modern flexbox properties (display: flex). Firefox does this, and I think Chrome might as well with their new layout engine. For reference: https://compat.spec.whatwg.org/#css-property-mappings
Attachments
Radar WebKit Bug Importer
Comment 1 2022-06-05 03:20:55 PDT
Sam Sneddon [:gsnedders]
Comment 2 2022-06-06 06:00:37 PDT
They're not actually aliases; see https://github.com/whatwg/compat/issues/87.
zalan
Comment 3 2022-06-06 06:14:44 PDT
line clamping is a RenderDeprecatedFlexibleBox only feature.
Sam Sneddon [:gsnedders]
Comment 4 2022-06-07 07:47:43 PDT
(In reply to zalan from comment #3) > line clamping is a RenderDeprecatedFlexibleBox only feature. See https://groups.google.com/a/chromium.org/g/blink-dev/c/SVD5wSqVwKU/m/eY28UiNkAwAJ for what Chromium has done there; essentially their deprecated flexbox implementation is actually their line clamp implementation (and only used in that case, and many of the properties no longer exist there).
Note You need to log in before you can comment on or make changes to this bug.