CSS :has() Interactive GuideAn extensive guide to CSS :has() selector. Intro We always wanted a way in CSS to style an element based on its descendants. It wasn’t possible until CSS :has() became supported in all major browsers. In this article, I will explore the problem and shed the light on some of the interesting use cases for CSS :has(). The problem Say we have a <figure> and we want to style