My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Emulating :has()

Emulating :has()

Tommy Hodgins's photo
Tommy Hodgins
·Apr 13, 2017

If you've ever wanted to use CSS's :has() selector you've likely run into the problem of the total lack of browser support. Using EQCSS we can emulate the same kind of functionality that :has() brings using a slightly different syntax, but one that we can make work in any browser using a little bit of JavaScript. From now on, you have a way to use what :has() offers in your CSS!