Skip to content

[css-flexbox-1] Section 9.7(3) – Remove redundant criterion #12021

@gitspeaks

Description

@gitspeaks

The spec currently states:

  1. Size inflexible items. Freeze, setting its target main size to its hypothetical main size…
  • any item that has a flex factor of zero
  • if using the flex grow factor: any item that has a flex base size greater than its hypothetical main size
  • if using the flex shrink factor: any item that has a flex base size smaller than its hypothetical main size

Proposal: Remove the line:

"any item that has a flex factor of zero"

This condition is redundant and does not impact the algorithm’s logic or behavior. An item may have a flex-grow of 0 and a flex-shrink of ≥1 (or vice versa), but what actually matters in this step is whether the item will participate in growth or shrinkage based on the direction of the flexing and the relationship between its flex base size and its hypothetical main size.

The two remaining conditions already fully capture which items are inflexible in this context. The explicit mention of a flex factor of zero adds no operational value and may even be misleading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions