[csswg-drafts] [css-nesting-1] Example 4 : selectors starting with an identifier (#7980)

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

== [css-nesting-1] Example 4 : selectors starting with an identifier ==
https://drafts.csswg.org/css-nesting/

> Example 4
> However, starting the nested selector with an identifier (a [type selector](https://drafts.csswg.org/selectors-4/#type-selector), in other words) is invalid:

Does this only apply to the first selector in a list or to each?

invalid :

```css
div {
  color: red;

  input {
    margin: 1em;
  }
}
```

valid/invalid? : 

```css
div {
  color: red;

  :is(input), textarea {
    margin: 1em;
  }
}
```

From a parser perspective only the first in the list is important. But from an author perspective this is less obvious.

If you remove `:is(input)` then you need to modify `textarea` to make it valid again.

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


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

Received on Saturday, 29 October 2022 08:23:15 UTC