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

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