- From: Alison Maher via GitHub <noreply@w3.org>
- Date: Tue, 15 Jul 2025 23:11:09 +0000
- To: public-css-archive@w3.org
alisonmaher has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-grid-3][Masonry] Behavior of repeat(auto-fit, auto) in Masonry == According to [css-grid-2](https://drafts.csswg.org/css-grid-2/#valdef-repeat-auto-fit), "The auto-fit keyword behaves the same as [auto-fill](https://drafts.csswg.org/css-grid-2/#valdef-repeat-auto-fill), except that after [grid item placement](https://drafts.csswg.org/css-grid-2/#auto-placement-algo) any empty repeated tracks are [collapsed](https://drafts.csswg.org/css-grid-2/#collapsed-grid-track). An empty track is one with no [in-flow](https://www.w3.org/TR/css-display-4/#in-flow) grid items placed into or spanning across it." In css-grid-3, there is a proposal to add support for `repeat(auto-fit, auto)`. However, what should happen for this in Masonry? In Masonry, placement hasn't happened by the time we size tracks, so currently, all items contribute to the size of every track (unless explicitly placed). If a track has no item, should that track still be collapsed in this case? If so, we won't know this during track sizing. Also, the [last step](https://drafts.csswg.org/css-grid-2/#algo-stretch) of track sizing is to stretch `auto` tracks. I also presume that shouldn't have an impact on collapsed `auto` tracks as a result of `repeat(auto-fit, auto)`? CC @tabatkins @bfgeek Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12485 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 15 July 2025 23:11:10 UTC