[css-grid] Should copy Flexbox and treat stretched items as having definite size · Issue #1320 · w3c/csswg-drafts · GitHub
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] Should copy Flexbox and treat stretched items as having definite size #1320

Closed
tabatkins opened this issue May 2, 2017 · 1 comment
Labels
Closed Accepted by CSSWG Resolution Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-grid-1 Tracked in DoC

Comments

@tabatkins
Copy link
Member

Flexbox's layout algorithm, in step 11, explicitly treats "stretch" items as being definitely sized in the cross axis (redoing layout for the contents if necessary). This means that % children of the flex item can resolve properly, which is precisely why we added

Grid doesn't appear to have a similar clause; an auto-sized but stretched grid item would, it appears, be treated as indefinite, so %s on its children resolve to auto. Should we copy over this clause to the Grid layout algo, so more %s are valid?

@fantasai
Copy link
Collaborator

See #1319 for CSSWG discussion.

@fantasai fantasai added Closed Accepted by CSSWG Resolution Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. and removed Needs Edits labels Oct 17, 2017
@fantasai fantasai added this to the css-grid-1 CR 2016-09-29+ milestone Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Accepted by CSSWG Resolution Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-grid-1 Tracked in DoC
Projects
None yet
Development

No branches or pull requests

3 participants