Skip to content

topics css3 flexbox default shrink when grow is 0

Keith Cirkel edited this page Feb 13, 2026 · 1 revision

Default for flex-shrink when flex-grow is 0 in the shorthand

Spec_tags     : css3-flexbox
Owner_tags    : tabatkins
Status_tags   : Closed
Added_dt      : 2012-05-17
Action        : Approve the proposal?
Issue_urls    : 
Proposal_urls :

Background

To address other issues, we changed the default for 'flex-shrink' from 0 to 1 during the F2F.

Problem Statement

The behavior of "flex: 0 ;" changes - it can now shrink, where before it couldn't.

Proposal(s)

Proposal A: flex-shrink always gets reset to 1, even if flex-grow is 0. Proposal B: Make an omitted flex-shrink default to 0 if the flex-grow is given as 0 in the flex shorthand.

This issue ties in with the flex-initial-value, whose outcome may affect what's sensible here.

Clone this wiki locally