Re: [csswg-drafts] [css-mixins-1] Should parameters keep their type? (#12315)

> Grouping parameters in with (untyped) locals seemed reasonable to me originally, but given the example, I think `--arg <color>` should act as a "local registration" within the function (also affecting any locals named `--arg`).

Agree.

> we may want a more general solution for on-the-fly "compare these values as `<type>`".

Also agree. Within a `style()` test, we could have a `foo as <type>: val` syntax. This would help in cases where a value *could* be a few different types, and you want to test it against a particular value *if* it parses to the correct type.

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


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

Received on Wednesday, 11 June 2025 16:43:52 UTC