Re: [csswg-drafts] [css-values] Proposal: a way to revert a property to use presentational hints if any (#13213)

Actually, you make me realize that `revert-layer(<sublayer-name>)` could be ambiguous because it is valid to give a layer the same name as a parent layer. Imagine this:
```css
/* unlayered styles */

@layer unimportant {
  /* styles that are overridden by the unlayered styles */

  @layer unimportant {
    /* styles that are even less important, overridden by the above */

    @layer foo {
      something: revert-layer(unimportant);
    }
  }
}
```
Which `unimportant` layer does `revert-layer(unimportant)` revert?  Probably the nearest one, but what if the user wants to revert the outer one?

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


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

Received on Wednesday, 4 February 2026 21:07:00 UTC