Re: [csswg-drafts] [css-values] Proposal for an `all-vars` property to reset all custom properties (#11105)

I was reminded by this issue today from https://x.com/branmcconnell/status/1889735949481136520

So, there are two components to this:
1. A property that can be set, just like `all` but for custom properties
2. A way to specify all (or many) custom properties in places that accept such references, such as transitions.

While it would be elegant that these have the same syntax, it is not a requirement, and I suspect 2 would be a lot easier to implement.

Also, custom properties come from so many different sources, and are used for so many purposes, that the use cases for a general `--` or `all-vars` property seem rather niche to me. Being able to specify a subset of custom properties by prefix would be far more useful, and lends itself to a very natural wildcard syntax: `--*` for all (what is proposed here), `--foo-*` for a given prefix.

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


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

Received on Wednesday, 12 February 2025 18:09:00 UTC