- From: Benoît Rouleau via GitHub <noreply@w3.org>
- Date: Mon, 16 Jun 2025 16:57:50 +0000
- To: public-css-archive@w3.org
benface has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-values] Allow `unset` to use `revert` for non-inherited properties, instead of `initial` ==
This would allow _actually_ resetting all properties to what they were before some arbitrary CSS was applied, e.g. in a subtree:
```css
/* bunch of CSS here */
#vendor-controlled-section {
&, *, *::before, *::after {
all: unset; /* all `div`s in this section will be inline! 😱 */
}
}
```
Two ideas for syntax:
1. Make `unset` a function that accepts which value to use for non-inherited properties; `unset` would default to `unset(initial)` but the above would use `unset(revert)`. Maybe there's even a use case for `unset(revert-layer)`? 🤔
2. Add a `unset-revert` value.
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12341 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 16 June 2025 16:57:51 UTC