I feel like such a genius every time I pull off a neat hack with :has(). Especially if it targets an element in the DOM hierarchy that would have been previously inaccessible with CSS alone.

I love modern CSS.

@csilverman :has() is so good. I wonder what the performance costs of some of these features are though. Is there a CSS perf tool?
@subtl Interesting question. I haven't tested that yet. Based on what I've read, my understanding is that on modern hardware, selectors don't usually put a noticeable dent in performance unless they're unusually complex, but I'll see if anything noteworthy crops up in the inspector (Performance tab).