Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardCSSspecificity algorithmSingle-choice MCQ

Selector A is `*.warning` and selector B is `:where(.warning).warning`. Both match the same element. Ignoring source order, which wins on specificity and why?

*.warning { color: red; } :where(.warning).warning { color: green; }