CSS :has() feature detection with @supports(selector(…)): You want :has ...

CSS :has() feature detection with @supports(selector(…)): You want :has ...

More to explore