Re: [csswg-drafts] [selectors] Wrapping with `:is()` to get forgiveness changes semantics (#8430)

You can also split `:has()` into multiple, so that each one gets a complex selector, and wrap them all inside a single `:is()`.

```js
document.querySelectorAll('#test-elem:is(:has(:new-pseudo-with-limited-support), :has(div span))');
```

But yeah, may be good to warn about this. Also in nesting when omitting `&`, `.foo .bar` a.k.a. `& .foo .bar` and `:is(.foo .bar)` a.k.a. `& :is(.foo .bar)` are different.

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


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

Received on Wednesday, 8 February 2023 22:25:38 UTC