CSS has pseudo-class revolution
There are countless articles about the :has
pseudo-class lately, and more will come.
We are months or not weeks away from seeing all major browser support it. For me, this is the most exciting thing that happened to CSS in years.
As always, as the Using :has() as a CSS Parent Selector and much more article puts it:
The hardest part of
:has
will be opening our minds to its possibilities. We’ve become so used to the limits imposed on us by not having a parent selector. Now, we have to break those habits.