Re: [csswg-drafts] [selectors-4] `x-pseudo-element` test is not documented in the selectors-4 spec (#6826)

Ah, that makes sense, `::x-` is to specifically validate that WebKit doesn't treat it as valid, the name itself is weird enough that other UAs shouldn't use it.  Thanks for the clarification.

> Author-defined pseudo-elements should probably use `::--`.

Yeah, that makes sense as well and is consistent with the `<ident-token>` handling.

With this information, I would still recommend my first paragraph suggestion:

> The host language and UAs defines which pseudo-elements exist [...]. If a pseudo-element does not exist, the selector is invalid.



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


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

Received on Tuesday, 23 November 2021 23:54:54 UTC