Re: [csswg-drafts] [selectors-4] Disallow pseudo-elements inside :has() (#7463)

Implementations (Blink & WebKit) already disallow pseudo-elements (but `:has()` is forgiving):

```js
var s = document.createElement("style");
s.textContent = ":has(foo, ::before, bar) { color: blue }";
document.documentElement.append(s);
s.sheet.cssRules[0].selectorText; // ':has(foo, bar)'
```


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


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

Received on Thursday, 7 July 2022 22:01:05 UTC