[csswg-drafts] [css-selectors-4] Have textual description of pseudo-elements match pseudo-classes (#7186)

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

== [css-selectors-4] Have textual description of pseudo-elements match pseudo-classes ==
The [grammar](https://drafts.csswg.org/selectors-4/#typedef-pseudo-element-selector) for pseudo-elements references the grammar for pseudo-classes, with a preceding colon:

```
<pseudo-element-selector> = ':' <pseudo-class-selector>
```

The descriptions however diverge. 

[Pseudo-classes](https://drafts.csswg.org/selectors-4/#pseudo-element-syntax):

> The syntax of a pseudo-class consists of a ":" (U+003A COLON) followed by the name of the pseudo-class as a CSS identifier, and, in the case of a functional pseudo-class, a pair of parentheses containing its arguments.

[Pseudo-element syntax](https://drafts.csswg.org/selectors-4/#pseudo-element-syntax):

> The syntax of a pseudo-element is "::" (two U+003A COLON characters) followed by the name of the pseudo-element as an identifier.

There are now functional pseudo-elements in the wild, namely [::part](https://developer.mozilla.org/en-US/docs/Web/CSS/::part) and [::slotted](https://developer.mozilla.org/en-US/docs/Web/CSS/::slotted). The description of the pseudo-element syntax should be updated to reflect this.

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


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

Received on Thursday, 31 March 2022 13:30:44 UTC