Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardCSScascade order and originsSingle-choice MCQ

Two author rules match an element for the same property; one is inside an `@layer base` and the other is unlayered (written normally outside any layer). The layered rule has higher specificity. Which wins and why?

@layer base { #id .item { color: red; } } .item { color: green; } /* unlayered, lower specificity */