[csswg-drafts] [css-nesting-1] Result of invalid selectors in nested rules (#7833)

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

== [css-nesting-1] Result of invalid selectors in nested rules ==
The spec has the following example:

```
.foo {
  color: red;
  @nest .bar {
    color: blue;
  }
}
/* Invalid because there’s no nesting selector */
```

This is ambiguous; in particular, it does _not_ specify whether this is equivalent to

```
.foo {
  color: red;
}
```

or whether it's equivalent to nothing at all. The spec talks about “the rule” being invalid in a number of places, the that could refer to both the parent rule and the nested rule. Which is intended? The best is probably the latter (not the least because it's somewhat simpler to implement :-) ), but the standard needs to be clarified either way.

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


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

Received on Wednesday, 5 October 2022 13:13:55 UTC