W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

Re: [csswg-drafts] [css-cascade] Where do Cascade Layers fit in the cascade? (#5003)

From: Miriam Suzanne via GitHub <sysbot+gh@w3.org>
Date: Tue, 05 Jan 2021 21:27:53 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-754909607-1609882072-sysbot+gh@w3.org>
This has been drafted in [Cascade 5](https://drafts.csswg.org/css-cascade-5/#cascade-sort) with one small variation to define how layers interact with the `style` attribute. The resulting sort order is:

1. Origins & Importance
2. Context (eg Shadow DOM)
3. **Style Attributes**
4. **Layers**
5. Specificity
6. Source Order

Which results in `style` rules remaining at the top of a given origin for both important and normal styles:

1. ❗️Author 
   1. ❗️**Style Attribute**
   2. ❗️Defined Layers (in reverse order)...
   5. ❗️*unlayered*
2. *Animations*
3. Author
   1. **Style Attribute**
   2. *unlayered*
   3. Defined Layers (in declared order)...

GitHub Notification of comment by mirisuzanne
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5003#issuecomment-754909607 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 5 January 2021 21:27:56 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:25 UTC