Re: [csswg-drafts] [css-cascade][css-syntax] New `!revertable` flag to mark a declaration as "can be reverted when IACVT" (#10443)

> Yep, it is a “gotcha” based on how we serialize things, easily workaroundable as
> 
> ```
> .foo {
>   color: green;
>   & {
>     color: var(--unknow, revert-rule);
>   }
> }
> ```
> 
> It will benefit from a note & example in the spec for sure.

Adding an empty `& {}` also makes `color: green` take effect(Chrome 147.0.7715.0). I think this part of the specification should include some clarification. cc @andruud 

```
data:text/html;charset=UTF-8,<!doctype html>
<style>
.foo {
  color: green;
  & {}
  color: var(--unknow, revert-rule);
}
</style>
<div class="foo">Test</div>
```


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


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

Received on Wednesday, 4 March 2026 03:21:32 UTC