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