Re: [csswg-drafts] [css-grid-3][Masonry] Repeat(auto-fill, auto) and % sized items (#12432)

> So what should the img width be for this very common list of images?

One potential option that comes to mind for this case is that in the first track sizing pass to get the size of the auto tracks, we could ignore %'s on replaced items with an aspect ratio and use the aspect ratio to size the auto tracks. Then on the next pass, let the %'s resolve based on those track sizes.

This would work well if the aspect ratio was small enough, but if the image aspect ratio produced a larger width than the container, or a width close in size to the container, we'd still end up with one column

-- 
GitHub Notification of comment by alisonmaher
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12432#issuecomment-3137011928 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 30 July 2025 16:21:01 UTC