Has selector, some use cases for it

Safari 15.4 - I just updated to it - is the first browser to implement the :has CSS selector. And if they did it, many will follow soon!

Matthias in the CSS :has( ) A Parent Selector Now shares a few use cases for it. This is the most exciting for me of all the new stuff we got in CSS in the last few years.

And I just noticed that the Container Queries are also in the Safari TP (Technology Preview)! In two years, I'll write CSS very differently.