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

If we always take max-content, is it ok that orthogonal items can still overflow in this case?

For orthogonal items, when forced to their min-content size, the contribution can be "wider" than their contribution when forced to max-content in the perspective of the outer masonry.

Which means that if we always take max-content, the orthogonal items can overflow if they end up using their min-content size at layout. Is this ok, or do we want to take the max of min-content/max-content instead?

Another option is to force orthogonal items to their max when calculating the min-content of the container, and vice versa for max-content.

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


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

Received on Monday, 3 November 2025 19:33:32 UTC