Summary
The :has() CSS pseudo-class represents an element if any of the relative selectors that are passed as an argument match at least one element when anchored against this element.
1
This allows for more complex selectors to be used in CSS, such as selecting elements that are descendants of other elements.
This can be used to target elements based on their relationship to other elements, rather than their own attributes.
According to