My 2022 Pick: The `:has()` Selector
We've been wishing and waiting for CSS container queries for so long.
:has() arrived shortly after,
and it felt like it was "everything we never knew we always wanted".
My 2022 Pick: Empty CSS Variables
Not many people know this but
--my-var: ; is totally valid CSS,
and it's way more useful than you think.
We use it in Tailwind CSS all the time to make it
possible to decompose a single CSS property into multiple classes.