[csswg-drafts] [css-selectors] `:has()` and performance (#3345)

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

== [css-selectors] `:has()` and performance ==
https://drafts.csswg.org/selectors-4/#profiles

The CSS selectors specification claims that `:has()` can’t be optimised, which isn’t accurate, as when `:has()` is the last component of a selector (with no nested `:has()` pseudo-classes), then:
```css
a b c {}
```
and
```css
a b:has(c) {}
```
would be essentially identical in terms of performance, and therefore viable for the live profile.

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

Received on Monday, 26 November 2018 03:48:57 UTC