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-3][masonry] Prioritize tracks that don't create overflow #10088

Open
fantasai opened this issue Mar 14, 2024 · 1 comment
Open

[css-grid-3][masonry] Prioritize tracks that don't create overflow #10088

fantasai opened this issue Mar 14, 2024 · 1 comment
Labels

Comments

@fantasai
Copy link
Collaborator

Pulling out @ethanjv's comment:

Btw we might want to consider that, in the current draft of masonry, having definite tracks mixed with intrinsic tracks might result in some items overflowing the spanning tracks in the grid axis. E.g., if we have a grid-template-columns: 50px auto definition, if we have two auto placed items, the first one with a min-content size of 100px and the other with 50px, the first will be placed in the first column and overflow it, then the second would be placed in the auto track.

Maybe we want to prioritize placing a grid item in a track that won't overflow?

@fantasai
Copy link
Collaborator Author

There's two ways to address this use case:

  • Give the author the ability to select a set of allowable tracks for auto-placement (rather than all or none, as currently).
  • Have the UA skip over tracks that overflow. (This will be more expensive because you may need to test-fit into different tracks.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant