</>HTML & CSS News
LatestAuthorsRSS
Tag

#specificity

Tagged “specificity”

1 article
CSS & layout

A 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.

Nov 3, 2026 · Yuki Tanaka
</>HTML & CSS News

Independent web-platform news — concise, vendor-neutral takes on HTML, CSS, accessibility and the browsers that ship them.

About

Latest newsAuthorsRSS feedSitemap