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] Non-replaced items with aspect ratio should be handled #5988

Closed
cbiesinger opened this issue Feb 12, 2021 · 2 comments
Closed

[css-grid] Non-replaced items with aspect ratio should be handled #5988

cbiesinger opened this issue Feb 12, 2021 · 2 comments

Comments

@cbiesinger
Copy link

https://www.w3.org/TR/css-grid-1/#grid-item-sizing

If the grid item is a replaced element with a natural size in the relevant dimension (or with a preferred aspect ratio and a size in the other dimension) the grid item is sized as for align-self: start

The parenthetical should probably also apply to non-replaced elements with an aspect ratio.

@tabatkins @fantasai

@cbiesinger cbiesinger added css-grid-1 css-grid-2 Subgrid; Current Work css-grid-3 Masonry Layout labels Feb 12, 2021
@Loirooriol
Copy link
Contributor

See latest draft: https://drafts.csswg.org/css-grid-2/#grid-item-sizing

If the grid item has no preferred aspect ratio, and no natural size in the relevant axis (if it is a replaced element)

@tabatkins
Copy link
Member

Yup, this is fixed in the EDs.

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

No branches or pull requests

3 participants