CSS :has() is the parent selector we’ve always wanted 🎯

Target elements based on what they contain, not just their own state.
⋅ Style a form when it has an error input
⋅ Add spacing to any element with children
⋅ Combine with :not()

Learn more 👇
https://developer.mozilla.org/en-US/docs/Web/CSS/:has