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

tabatkins opened this Issue May 2, 2017 · 1 comment


None yet
3 participants

tabatkins commented May 2, 2017

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?


This comment has been minimized.


fantasai commented Aug 15, 2017

See #1319 for CSSWG discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment