Re: [csswg-drafts] [css-cascade] `revert-layer` keyword in style attribute (#6743)

> And you're proposing a much more limited scope, where only the current layer is reverted, separately for normal and important versions of a layer?

No. My mental model works like:

```
user agent     !important
style          !important       * 
author layer A !important *     @ 
author layer B !important x *    
author layer C !important x x *  
animations                x x x x 
style          normal     x x x x 
author layer C normal     x x x  
author layer B normal     x x @   
author layer A normal     x @     
user agent     normal     @
```

That's what I meant by "`revert-layer` makes everything in the current layer and all layers above ignored". There's no behavioral difference to the current spec text unless there's a `revert-layer` in `style`.

In this example, we ignore `style` and `animations`, but not anything in author layers `A/B/C` because they are below `style` (assuming `style` is a layer above `A/B/C`, though this does seem a bit ill-defined). 

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


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

Received on Wednesday, 17 November 2021 18:04:09 UTC