Hacker News new | past | comments | ask | show | jobs | submit login

:has is not supported in any browser, and that seems unlikely to change, for performance reasons. https://caniuse.com/css-has



Sorry, I meant :is (which is already supported in some browsers).


Sometimes it'd be great to have full XPath available for CSS selectors. But I can see how that's a performance nightmare.


You can support :has(), and things like it yourself via client-side JavaScript styling runtimes well enough.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: