[csswg-drafts] [selectors-4] Consider disallowing logical combination pseudo-classes inside :has() (#6952)

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

== [selectors-4] Consider disallowing logical combination pseudo-classes inside :has() ==
That is disallow nested `:has()`

```
:has(:has(foo))
```

and

```
:has(:not(foo))
:has(:is(foo))
:has(:where(foo))
```

These cases complicate style invalidation in the engine too much while also being difficult to reason about and generally not very useful.

It is also easy to make mistakes with `:has(:not(foo))` since it may be non-obvious it is not the same as `:not(:has(foo))`.




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


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

Received on Friday, 14 January 2022 11:32:59 UTC