CSS Cascade Layers


โœ… This feature has shipped in browsers. Our notes are likely out-of-date.

While Cascade Origins help to balance styling concerns across stakeholders โ€“ layering browser defaults, user preferences, and document styles โ€“ it can be useful to have similar layering of concerns within a single origin. Author styles often start with browser normalization or resets, then layer in default typography, broad patterns (sometimes from design systems or frameworks), and more specific component styles.

Currently that layering has to be achieved with careful management of selector-specificity, or over-use of !important flags โ€“ both resulting in unwanted side-effects. Cascade Layers would allow authors to define their own layering scheme and avoid specificity or source-order conflicts across concerns.

Important Links

Related Notes