Skip to content

[css-grid] Set initial growth limits of flexible tracks to infinity #4313

@Loirooriol

Description

@Loirooriol

https://drafts.csswg.org/css-grid/#algo-init says

  • A flexible sizing function
    Use the track’s initial base size as its initial growth limit.

However, later in https://drafts.csswg.org/css-grid/#algo-spanning-flex-items, we have

treating flexible tracks as having an infinite growth limit

It would be simpler to just drop the latter and change the former to initialize growth limits to infinity for flexible tracks.

This shouldn't matter in practice:

  1. Increase sizes to accommodate spanning items crossing flexible tracks is where we are considering tracks to have an infinite growth limit, which won't be necessary after the change
  2. https://drafts.csswg.org/css-grid/#algo-finite-growth already sets infinite growth limits to the base size, so the change can't have effects beyond this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions