Re: [csswg-drafts] [css-grid] Ability to clamp track spanning (#5852)

It seems to me like this should be solvable, and would be very useful. Here's my proposal (actual function name TBD):

- `span(<integer>, [ <integer> | all ]?)`, where…
- The smaller integer is a min span, the larger is a max span
- `all` keyword represents until the end of the explicit grid
- For determining necessary grid tracks, only contribute the min value
- For placing the item on the grid, if it can span more tracks (up to the max) without impacting the number of tracks or overlapping other explicitly-placed items, let it
- We might consider allowing one-argument `span(<integer>)` as equivalent to `span <integer>`


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


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

Received on Wednesday, 14 February 2024 21:10:15 UTC