Cascade layers
Widely available
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.
To learn more, see
@layer at MDN.
Compatibility (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