Re: [csswg-drafts] [css-mixins-1] A var()-based model for mixin parameters (#12927)

Macro is the proper name and it is a good decision to add this somewhat separate from mixins. It is also fine they share a namespace, methinks. However, since macros *never* take an argument, I believe authors should not be allowed to call them in `@apply` with parentheses! It then makes it simpler if mixins always required the parentheses, even if no argument was passed. 

| invocation | mixin | macro |
|---|---|---|
| `@apply --foo;` | ❌ | ✅ |
| `@apply --foo();` | ✅ | ❌ |
| `@apply --foo(bar);` | ✅ | ❌ |
| `@apply --foo {}` | ❌ | ✅ |
| `@apply --foo(bar) {}` | ✅ | ❌ |
| `@apply --foo {quz: baz;}` | ❌ | ✅ |
| `@apply --foo(bar) {quz: baz;}` | ✅ | ❌ |

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


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

Received on Thursday, 5 March 2026 15:30:49 UTC