[csswg-drafts] [css-nesting-1] Does nesting affect forgiveness of selector lists in the parent. (#7975)

romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-nesting-1] Does nesting affect forgiveness of selector lists in the parent. ==
```css
.foo, :invalid {
  .bar & {}
}
```

When each selector in the parent selector list is treated separately :

```css
.bar :is(.foo), .bar :is(:invalid) {}
```

When the parent selector list is treated as a whole :

```css
.bar :is(.foo, :invalid) {}
```

Is there any way this can have a different outcome?

Writing this out fully I am guessing there is no difference and that nesting effectively makes parent selector lists forgiving.

So in a way this would be a forgiving selector :

```css
.foo, :invalid {
  /* not forgiving */
  & {
    /* forgiving */
  }
}
```

But maybe this aspect of `:is()` doesn't apply to nesting at all?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7975 using your GitHub account


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

Received on Friday, 28 October 2022 19:01:12 UTC