Re: [csswg-drafts] [css-grid-3] Allow <auto-repeat> (i.e. repeat(auto-fill|auto-fit, ...)) to accept intrinsic sizes (#9321)

> I think the way forward for grid is to do what we do for masonry: ignore the track sizes in that axis, and assume their containing block is the grid container itself. In other words, make column track repetition calculations assume there is one single track, sized to 100%.

Chatted a bit on this with @bfgeek today and he mentioned that this might work _ok_ in the column direction (barring weird behavior with aspect ratios etc) but in the row direction, you can end up with fairly bad results, specifically with text, where sizing the text without the column constraint sizes one way, and then taking the columns into account during the actual track sizing pass could lead to text overflow in some cases, which doesn't feel like a great result for authors.

I would also be curious what should happen with spanning items that span in both directions with this proposal now that we resolved to not divide by the item span size for masonry when computing the intrinsic auto repeat heuristic.

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


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

Received on Thursday, 20 November 2025 23:12:29 UTC