Re: [csswg-drafts] [css-grid] Decorative grid-cell pseudo-elements (#499)

> ::grid-area() arguments can also use nth-child syntax in place of `<integer>`

If we go this way, I think there should be a way to specify multiple conditions. For example, I can use `:nth-child(2n+4):nth-child(-2n+18)` to select a range of children (even indices between 4 and 18, inclusive). This kind of things don't seem possible with the proposed `::grid-area`

> `content` causes it to exist or not exist, same as ::before

So, if I get it right, `::grid-area` doesn't actually style grid areas. Instead, it creates anonymous grid items in a certain grid area with the specified `content`?

What happens with things like `::grid-area(1 / 1 / 1 / 1)`? Is it no-op (empty area)? Does it create a grid item in the area `1 / 1 / 2 / 2` like in https://drafts.csswg.org/css-grid/#grid-placement-errors ?


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


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

Received on Thursday, 23 September 2021 21:47:51 UTC