CSS & layoutA short :has() selector can outweigh the component it was never meant to touch
In Smashing Magazine, Gabriel Shoyombo walks through a card where .card:has(img) p matches a comment's paragraph and beats the comment's own rule on specificity, and shows how child combinators, :where() and consistent layering keep the selector in its lane.