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:
 - For `empty-tracks: hide`, we collapse tracks not marked as filled by some item. For `empty-tracks: auto` there are more conditions on the track sizing functions.
 - Non-spanning items just mark their track as filled
 - Spanning items mark the spanned tracks with the greatest number of items as filled

So for example, if item A spans tracks 1-5, item B spans tracks 1-5, item C spans tracks 3-7, and item D spans tracks 6-8

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| - | - | - | - | - | - | - | - |
| A | A | A | A | A |  |  |  |
| B | B | B | B | B |  |  |  |
|    |   | C | C | C | C | C |  |
|    |   |   |   |   | D | D | D |

Then A,B,C mark tracks 3-5 as filled, and D marks tracks 6-7 as filled. So we collapse tracks 1-2 and 8. Is that right?

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


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

Received on Wednesday, 21 August 2024 17:12:49 UTC