[csswg-drafts] [css-mixins-1] Do we really need the `@contents` parameter? (#12946)

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

== [css-mixins-1] Do we really need the `@contents` parameter? ==
The `@apply` rule accepts a _block_ following it, which can be used inside a `@mixin` rule using `@contents`:

```
@mixin --m(--color, @contents) {
  color: var(--color);
  &:hover {
    @contents;
  }
}

div {
  @apply --m(green) {
    text-underline: underline;
  }
}
```

The spec currently requires `@contents` to appear in the parameter list of the mixin for the above to be valid. Do we need that, though? Can't we just pretend that the `@contents` parameter is always there?

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


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

Received on Tuesday, 14 October 2025 08:59:46 UTC