Re: [csswg-drafts] [css-grid] grid-gap is still taking up space when an element defined in grid-template-area is not on the page. (#5813)

> If I understand it correctly, the proposal to handle spanning items, is that [...]

@Loirooriol Yes, that's a great example.

> [repeat(8, min-content)
](https://codepen.io/SebastianZ1983/pen/vYqrEJr)
> Tracks and gaps should collapse so that the result is the same as if gap weren't set.

I think you are wrong here @SebastianZ. If you requested gaps, then we must put one at least between 5/6.

> [repeat(4, 100px min-content)](https://codepen.io/SebastianZ1983/pen/XWLYJZM)
> Tracks 2, 4, 6, and 8 should collapse.

What if track 7 doesn't have enough space for item D? I think we would want to avoid automatically creating overflow, especially since the author's specified design avoids such overflow.

> [200px 1fr 1fr repeat(5, 100px) with restricted container width](https://codepen.io/SebastianZ1983/pen/ExBRadw)
>Tracks 2 and 3 should collapse.

I agree strongly with @Loirooriol that we should not make track collapsing depend on the available space. If nothing else, it creates a discontinuity.

Thanks @Loirooriol and @SebastianZ for all the examples.

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


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

Received on Tuesday, 27 August 2024 14:33:18 UTC