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

> would be essentially identical in terms of performance, and therefore viable for the live profile.

That is not true. `b.matches('a b:has(c)')` requires looking at every descendant of `b`, while `c.matches('a b c')` does not. Evaluating the selector is much more expensive.

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

Received on Monday, 26 November 2018 09:09:14 UTC