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)

Wrt https://github.com/w3c/csswg-drafts/issues/5813#issuecomment-2315859241 

> My proposal to move this forward is just adding empty-tracks: hide (or collapse?) for the moment, which will collapse all empty tracks regardless of their track sizing function. Tracks containing spanning items are never considered empty.
> ...
> Then open other issue(s) about new value(s) to only collapse when the track would be guaranteed to be 0px, and to consider tracks containing spanning items as empty in some cases.

This seems safe and makes sense, but if we want to expand this feature in the future to address some of the ideas here, I think we need a syntax that is more extensible to handle those ideas.

Maybe something like...

```
grid-collapse: none or normal | empty | future stuff here
```

?

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


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

Received on Wednesday, 14 May 2025 15:57:44 UTC