3 ms·
:has is not supported in any browser, and that seems unlikely to change, for performance reasons. https://caniuse.com/css-has https://caniuse.com/css-has
by JoshTriplett 6y ago
:has is not supported in any browser, and that seems unlikely to change, for performance reasons. https://caniuse.com/css-has https://caniuse.com/css-has
- err4nt 6y agoYou can support :has(), and things like it yourself via client-side JavaScript styling runtimes well enough.
- uallo 6y agoSorry, I meant :is (which is already supported in some browsers).
- ygra 6y agoSometimes it'd be great to have full XPath available for CSS selectors. But I can see how that's a performance nightmare.