- From: Calvin Walton via GitHub <sysbot+gh@w3.org>
- Date: Sat, 01 Feb 2025 07:22:32 +0000
- To: public-css-archive@w3.org
One thing I've run into is that I'd like to be able to use auto-placed grid items, aligned to named lines, with spans. Right now, you can make an auto-placed item which spans two columns by doing e.g. ```css .grid > .span-2 { grid-column: span 2 / span 2; } ``` My understanding is that this acts the same as if you specified `grid-column: span 2 / auto;`. Then on specific objects that you need to manually place, you can override either `grid-column-start` or `grid-column-end` to set the position relative to either the start or end of the grid, and either way the item will continue to span 2 columns. I expected to be able to do the same, except aligning to and spanning a specific number of named lines, by doing `grid-column: span 2 line-name / span 2 line-name;` - unfortunately, this doesn't work at all. It looks like because of the incompatibility of spanning named lines and auto placement, this ends up being equivalent to `grid-column: span 1;` - you don't even get the correct number of columns, let alone constrained placement to named grid lines. -- GitHub Notification of comment by kepstin Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/796#issuecomment-2628826193 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 1 February 2025 07:22:33 UTC