Of all the latest and greatest CSS features, the “:has” pseudo-class wasn’t exactly at the top of my wishlist. Once I started using it, however, I kept discovering incredible things I could do with it. It’s now become a core part of my toolkit! In this blog post, I'll show you some practical real-world problems I solved using “:has”, as well as some wild experiments that blew my mind!
Frontend
Source:https://www.joshwcomeau.com/css/has/
The Undeniable Utility Of CSS :has
Josh Comeau0 views
Related posts
How I Built a Data-Driven Portfolio That Takes 30 Seconds to Update
0HackerNoon
Building a Typography Playground With Variable Fonts and Fluid CSS
0HackerNoon
The accessibility engine was already in our node_modules, reached by a linter that cannot run
0dev.to
How I built true background step counting in React 19.2 + Capacitor on Android 14/15 (without Google Fit, which is shutting down)
0dev.to
Creator commission is a cash event, not a percentage
0dev.to
Every one of our 79 pages is two clicks from the homepage, and 24 of them cannot be reached by reading
0dev.to