CSS :has( ) A Parent Selector Now

from blog Matthias Ott, | ↗ original
↗ original
I don’t remember the exact moment anymore. But I remember that it was with a mix of disbelief and disappointment that I realized one day that there was no way to select the parent of an element in CSS. Wait, what? This can’t be. Why? Obviously, I wasn’t alone. Everyone who has ever learned CSS has probably found themselves in the same situation...