[csswg-drafts] [css-mixin] custom mixins & functions should have some access to custom properties on the calling element. How much? (#9938)

mirisuzanne has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-mixin] custom mixins & functions should have some access to custom properties on the calling element. How much? ==
And how explicit should that access be?

- The initial proposal suggested explicitly passing in any variables needed, as part of the parameter list
- The more recent proposal involves a `using (<vars>)` syntax in the at-rule prelude (the same impact, but a bit more concise)
- Others have argued that all external variables should be (somehow) implicitly available.

Much of the previous discussion is in the initial proposal: #9350. There's also a related question about distinguishing between 'arguments' and 'variables' - which may belong as part of this issue, or may also deserve it's own thread?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9938 using your GitHub account


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

Received on Monday, 12 February 2024 23:54:11 UTC