W3C home > Mailing lists > Public > www-style@w3.org > August 2021

[CSSWG][css-cascade-5] Updated WD of CSS Cascading and Inheritance Level 5

From: Miriam Suzanne <miriam@oddbird.net>
Date: Fri, 27 Aug 2021 17:15:27 -0600
To: Www-Style  <www-style@w3.org>, Public-Review-Announce  <public-review-announce@w3.org>
Message-ID: <1ea9fe47-29f7-44cd-98cf-b00889d6e450@Spark>
The CSS WG has published an updated Working Draft of the CSS Cascading and Inheritance Module Level 5:

https://www.w3.org/TR/css-cascade-5/

This CSS module describes how to collate style rules and assign values by way
of cascading and inheritance.

Level 5 adds “layers” to the cascade, along with a syntax for defining and
sorting those layers. In the same way that cascade origins provide a balance
of power between user and author styles, cascade layers provide a structured
way to organize and balance concerns within a single origin – such as element
defaults, third-party libraries, themes, components, and overrides.

The changes have been made since the previous Working Draft:

• Reserve the CSS-wide keywords for future use in layer-names.
• Clarify that @layer rules respect global conditional rules, but are always applied to the layer order when declared in non-global conditions such as a container query.
• Clarify that name-defining at-rules follow layer order for collision resolution, similar to specificity resolution.
• Disallow interleaving of @layer with @import or @namespace rules.


Please review the draft, and send any comments to this mailing list, <www-style@w3.org>, prefixed with [css-cascade-5] (as I did on this message) or (preferably) file them in the GitHub repository at https://github.com/w3c/csswg-drafts/issues

For the CSS WG,
-Miriam
Received on Friday, 27 August 2021 23:15:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 27 August 2021 23:15:50 UTC