@layer
Term side of the Card
Topic: Directives
Unit title: @layer
Categories: Directive
Explanation side of the Card
Explanation: The directive used to control the order in which styles are applied by grouping them into layers. This helps manage the cascade and specificity, enabling to prioritize certain styles over others without relying on `!important` or changing the order of the stylesheets.
Browser compatibility:
- The chrome browser supports this feature starting from version 99
- The edge browser supports this feature starting from version 99
- The firefox browser supports this feature starting from version 97
- The safari browser supports this feature starting from version 15.4
Availability: