Re: [csswg-drafts] [css-grid-3][Masonry] Behavior of repeat(auto-fit, auto) in Masonry (#12485)

The CSS Working Group just discussed `[css-grid-3][Masonry] Behavior of repeat(auto-fit, auto) in Masonry`, and agreed to the following:

* `RESOLVED: resolution is we neither stretch nor collapse tracks as we're doing column counts`
* `RESOLVED: don't stretch collapsed tracks ever`

<details><summary>The full IRC log of that discussion</summary>
&lt;kbabbitt> alisonmaher: in grid the auto fit keyword behaves same as auto fill<br>
&lt;kbabbitt> ... except after grid placement or item placement any empty repeat tracks are collapsed<br>
&lt;kbabbitt> ... in masonry we have a new heuristic for auto fit because w don't know where items are placed when sizing tracks<br>
&lt;kbabbitt> ... we consider tracks filled if there's an explicitly placed item there<br>
&lt;kbabbitt> ... and first n tracks filled where n is sum of spans of auto placed items<br>
&lt;kbabbitt> ... if we have option for repeat auto-fit auto, I assume we shouldn't stretch any collapsed auto tracks<br>
&lt;kbabbitt> ... second clarification, during the first track sizing pass, to count number of repeats in repeat auto fit auto<br>
&lt;kbabbitt> ... I presume we shouldn't collapse tracks at that time<br>
&lt;kbabbitt> ...and avoid impacting # of calculated repeats<br>
&lt;kbabbitt> fantasai1: correct<br>
&lt;kbabbitt> alisonmaher: don't stretch collapsed tracks ever<br>
&lt;kbabbitt> ... and then don't collapse tracks when we're running first<br>
&lt;kbabbitt> fantasai1: don't collapse or stretch tracks during count<br>
&lt;kbabbitt> ... when calculating column count<br>
&lt;kbabbitt> astearns: seeing some nodding<br>
&lt;kbabbitt> ... any questions?<br>
&lt;kbabbitt> TabAtkins: seems like right behavior<br>
&lt;kbabbitt> astearns: resolution is we neither stretch nor collapse tracks as we're doing column counts<br>
&lt;kbabbitt> alisonmaher: and don't stretch collapsed tracks ever<br>
&lt;kbabbitt> fantasai1: worth clarifying in spec<br>
&lt;kbabbitt> astearns: objections?<br>
&lt;kbabbitt> RESOLVED: resolution is we neither stretch nor collapse tracks as we're doing column counts<br>
&lt;kbabbitt> fantasai1: I would object to stretching them<br>
&lt;kbabbitt> RESOLVED: don't stretch collapsed tracks ever<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12485#issuecomment-3199829820 using your GitHub account


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

Received on Tuesday, 19 August 2025 08:48:24 UTC