Re: [csswg-drafts] [css-cascade-5] `revert-layer` in element-attached styles (#10934)

@bramus Both revert to styles within the author origin. That note is specifically about how to deal with intervening _important_ rules. In the example you linked -- and always when the inline styles are not marked as important -- there are no intervening important rules: 

```txt
- !important UA origin
- !important User origin
- !important Element attached (reverting from here…) ⏪
- !important Lowest Layer (…maintains these layers)
- !important Highest Layer (…)
- !important No Layer (…)
- Animation origin (…but would revert this one) ❌
- Element attached (the linked WP test starts here…)
- No Layer (…and ends up here, which is also correct)
- Highest Layer
- Lowest Layer
- Presentation hints
- User origin
- UA origin
```


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 2 October 2024 16:03:20 UTC