Skip to content

[css-flexbox] Condition when computing remaining free space is always true? #8961

@Loirooriol

Description

@Loirooriol

https://drafts.csswg.org/css-flexbox-1/#remaining-free-space

Calculate the remaining free space as for initial free space, above. If the sum of the unfrozen flex items’ flex factors is less than one, multiply the initial free space by this sum. If the magnitude of this value is less than the magnitude of the remaining free space, use this as the remaining free space.

Correct me if I'm wrong, but:

  • A flex factor can't be negative
  • So a sum of flex factors can't be negative either
  • So if the sum is < 1, we are multiplying by something in the [0,1) interval.
  • This will never increase the magnitude (absolute value)

So why not just say

Calculate the remaining free space as for initial free space, above. If the sum of the unfrozen flex items’ flex factors is less than one, multiply the initial free space by this sum, and use this as the remaining free space.

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