:is(), :where(), :has(), :not()
May 3, 2025 · 16 min read · The :has() pseudo-selector is the only CSS Selector that selects elements based on whether they contain specific descendants. It targets the parent element with one or more descendants that match the specified selector. It can also target siblings or...
Join discussion