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
Stop hand-writing TypeScript types from API responses
0dev.to
Where a floating button must never appear on Android: a hand-kept deny list for payment apps, and the app's own category for games and video
0dev.to
Building and Evaluating a RAG System: A Practical, Evidence-First Guide
0dev.to
text-overflow: ellipsis Does Nothing in a Flex Row? Look at min-width
0dev.to
Opdo closes $2.3M pre-seed for AI optical engineering
0dev.to AI
A saved localStorage value made our CSS check look wrong
0dev.to CSS