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

This came up on socials again today: being able to reset all custom props (and only the custom props).

From what I read in the thread, possible names for this property:

1. `all-vars`
2. `--`
3. `--all`
4. `--*`

I think 3 definitely should not be it, because it can clash with existing `--all` custom properties that authors have created. Leaning towards 2 or 4 here.

> 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.

Seems like something for a V2 of this feature? But definitely does make the case to use `--*` to target all custom properties.

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


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

Received on Monday, 23 June 2025 12:13:12 UTC