- From: Roman Komarov via GitHub <noreply@w3.org>
- Date: Wed, 25 Mar 2026 14:07:52 +0000
- To: public-css-archive@w3.org
I think the `using` should only take the parent mixin's local variable without chaning, and if you want to chain things, then you could do something like this:
```CSS
@mixin --bar() {
--a: purple;
--b: pink;
@result {
@apply --foo() using --a {
--color-from-bar: var(--a);
--a: var(--a);
@contents;
}
}
}
```
So it is the `--bar`’s responsibility to expose the innermost `--a` for the `@contents` if it wants them to get the innermost `--a`, but when you call `--bar()`, the only thing the caller needs to know is if the `--a` comes from their context, or `--bar()`’s context.
--
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12631#issuecomment-4126896264 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 25 March 2026 14:07:53 UTC