Re: [csswg-drafts] [css-mixins-1] Allow typed custom properties inside custom functions (#12317)

In the arglist, `--x <color>: red` means that `--x` gets given the value "red" *if and only if* the function/mixin is invoked without passing that argument. It's a fallback, not the primary value.

In the wherelist, `--x <color>: red` would mean that `--x` starts with the value "red" at all times. It's not a fallback, it's just the way to set the value.

That *feels* different to me. But maybe I'm wrong? I could be convinced that they're actually consistent in meaning, like they're "arguments" that can't be passed (and so always get the default). Maybe that's the cleanest way to integrate them into the spec, anyway.

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


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

Received on Wednesday, 16 July 2025 20:55:45 UTC