Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Loirooriol opened this issue Sep 16, 2019 · 0 comments · Fixed by #4314
Closed

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

Loirooriol opened this issue Sep 16, 2019 · 0 comments · Fixed by #4314
Labels
Closed Accepted as Editorial Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-grid-1

Comments

@Loirooriol
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Accepted as Editorial Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-grid-1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants