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

For `!important` declarations, the cascade reverses the priority of both origins and layers. Given an `!important` declaration in author `@layer a` and another `!important` in author `@layer b` (declared `@layer a, b;`), which wins?

@layer a, b; @layer a { .x { color: red !important } } @layer b { .x { color: blue !important } }