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
A Shopify CSV checker with line-level reports and an n8n import gate
0dev.to
Reviewing and Debugging AI-Generated UI Layouts: Detecting Inconsistent Component Hierarchies
0dev.to
Your toast notifications fade. Mine morph.
0dev.to
Why Git Shows Old Commit URLs After Squashing History
0dev.to
I put a real LLM in my portfolio. It runs on your GPU, not my server.
0dev.to
Microsoft 365 outage: how to avoid the single point of failure that paralyzes a business
0dev.to