Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardCSShas relational selectorSingle-choice MCQ

When `:has()` is used in a selector with forgiving vs non-forgiving parsing, how does the parser treat an unknown/invalid selector inside the relational argument, and what is the consequence for the rest of the selector list?

:has(:invalid-pseudo), .ok { color: red; } /* .ok still matches; the :has() item is dropped */