- From: Mayank via GitHub <noreply@w3.org>
- Date: Thu, 12 Feb 2026 00:37:47 +0000
- To: public-css-archive@w3.org
Today I ran into another use-case: I want to **revert only one layer and all its sublayers**. This seems different from the use-cases listed above because I want to preserve all the other layers that come before _and_ after this layer.
To solve this today, I had to inspect all the sublayer names and write this very tedious ruleset:
```css
*:not(#a#b) {
@layer thirdpartylib {
all: revert-layer;
@layer A { all: revert-layer; }
@layer B { all: revert-layer; }
@layer C { all: revert-layer; }
// …
}
}
```
As you can imagine, this is somewhat brittle because the sublayer names (`A`, `B` …) might change drastically if I update `thirdpartylib` to a newer version.
It would be nice if I could just do `all: revert-all-layers` inside `@layer thirdparty` to revert all the sublayers in one go.
Tying it back to the original issue, `all: revert-all-layers` when used unlayered could revert all layers, back to presentational hints.
--
GitHub Notification of comment by mayank99
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13213#issuecomment-3888000286 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 12 February 2026 00:37:47 UTC