Post #3130007
2026-03-27 14:57 UTC
@bramus@front-end.social I'd argue the the use of `--arg` makes the application of the value local, which aligns more to this: https://codepen.io/Westbrook/pen/raMJByv than to what you've shared.
Maybe that's not _how_ mixins work, but it's definitely how I'd read them. Your example feels more like the mixin is:
```css
:root {
--foo: 10em;
}
@mixin --foo() {
@Result@mastodon.social {
&, & > h2, & + p {
width: var(--foo);
}
}
}
```
Replies (0)
No replies.