← Back to release summary

Implement visibility:collapse for flex items

Category
CSS
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

Implement the CSS Flexbox visibility-collapse algorithm for flex items. Collapsed flex items should have zero main-axis size during line collection while preserving line cross-size contribution as a strut, per spec. CL: https://chromium-review.googlesource.com/c/chromium/src/+/7675197 sampler: https://static.januschka.com/i-41085247/

Motivation

interoperable support for visibility:collapse on flex items, as defined by the CSS Flexbox specification. Blink currently treats visibility:collapse like visibility:hidden for flex items, which is not spec compliant. As a result, developers rely on workarounds such as extra wrapper elements, script-driven layout changes, or alternate styles that are harder to maintain and do not reproduce the specified strut behavior. This change aligns Chrome with the standardized Flexbox algorithm, reduces cross-browser layout differences, and allows authors to rely on a consistent CSS behavior without custom workarounds. CL: https://chromium-review.googlesource.com/c/chromium/src/+/7675197 sampler: https://static.januschka.com/i-41085247/

Standards & signals

Ecosystem

Explainers: https://static.januschka.com/i-41085247

View on chromestatus.com