Re: [csswg-drafts] [css-grid-3][masonry] item overflow in a row masonry (#12843)

The CSS Working Group just discussed `[css-grid-3][masonry] item overflow in a row masonry`, and agreed to the following:

* `RESOLVED: Have the min-content size of the stacking axis of a masonry container be the same as its max-content size (same as the "stacking axis" of block layout).`
* `ACTION: Open an issue for orthogonal items`

<details><summary>The full IRC log of that discussion</summary>
&lt;emilio> alisonmaher: if you size the container to min-content in row masonry, we'd run layout for each of the items with the min-content size. When items are actually laid out, they use fit-content, so they end up with two items overflowing the container<br>
&lt;emilio> ... doesn't happen in grid because tracks constrain the items<br>
&lt;emilio> ... so fantasai proposed that masonry min-content and max-content size would be the same<br>
&lt;emilio> ... seems reasonable to me. Only tricky is orthogonal items,<br>
&lt;emilio> ... the max-content from the perspective of the container is smaller than the min-content<br>
&lt;oriol> q+<br>
&lt;emilio> ... proposal would be that orthogonal items would be min-content size rather than max-content<br>
&lt;emilio> ... so that we get the max width to avoid overflow<br>
&lt;astearns> ack oriol<br>
&lt;emilio> oriol: I'm not following the orthogonal item bit<br>
&lt;emilio> ... why do you say that min-content > max-content<br>
&lt;emilio> alisonmaher: I have an example but it's pretty large<br>
&lt;emilio> astearns: maybe we can resolve on the non-orthogonal behavior?<br>
&lt;astearns> PROPOSAL: Have the min-content size of the stacking axis of a masonry container be the same as its max-content size (same as the "stacking axis" of block layout).<br>
&lt;emilio> RESOLVED: Have the min-content size of the stacking axis of a masonry container be the same as its max-content size (same as the "stacking axis" of block layout).<br>
&lt;emilio> ACTION: Open an issue for orthogonal items<br>
</details>


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


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

Received on Thursday, 13 November 2025 05:57:16 UTC