Cascade layers
Widely available since 2024-09-14
The @layer
CSS at-rule avoids specificity conflicts by providing priority levels for different groups of CSS rules, such as low-priority styles like resets, and high-priority styles like UI components.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 99 Released on 2022-03-01
- Chrome Android 99 Released on 2022-03-01
- Edge 99 Released on 2022-03-03
- Firefox 97 Released on 2022-02-08
- Firefox for Android 97 Released on 2022-02-08
- Safari 15.4 Released on 2022-03-14
- Safari on iOS 15.4 Released on 2022-03-14
Surveys
- State of CSS 2024: usage/favorite_new_features question
- State of CSS 2024: usage/css_interoperability_features question
- State of CSS 2024: features/all_features question
Specifications
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature