CSS' `:has()` pseudo-class is powerful stuff, and even moreso when you combine it with classic techniques like quantity queries and a mobile-first mindset. I wrote about it for @piccalil.li! piccalil.li/blog/making-...
piccalil.liMaking content-aware components using CSS :has(), grid, and quantity queriesEric Bailey teaches us how to make a hyper-resilient component that responds not only to the container, but other languages too.