▲ CSS :has pseudo-class available in Safari v15.4 at developer.mozilla.org▼1 up and 0 down, posted by Gnito 964 days ago 1 comment
Gnito 964 days ago. link 1 point ▲ ▼Hopefully, this becomes adopted in other browsers as well since nowadays it requires some JavaScript work to conditionally add different classes based on DOM structure.