[csswg-drafts] [css-mixins-1] Auto-wrap mixin body in `@result` if omitted? (#13524)

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

== [css-mixins-1] Auto-wrap mixin body in `@result` if omitted? ==
As discussed in https://github.com/w3c/csswg-drafts/issues/13138 and also https://github.com/w3c/csswg-drafts/issues/12927, several people (perhaps most vocally @LeaVerou) felt that requiring an explicit `@result` rule was too "noisy":

```css
@mixin --greenify() {
  @result {
    color: green;
    background: lime;
  }
}
```

Should we then make `@result` _optional_, by treating a mixin body absent of _any_ `@result` rules as implicitly wrapped in `@result`?

The following would then be equivalent to the first example:

```css
@mixin --greenify() {
    color: green;
    background: lime;
}
```

I would prefer if we _did_ require `@result`, but I'd much rather do an implicit auto-wrap than consider `@local` again (see https://github.com/w3c/csswg-drafts/issues/13138#issue-3654600404).

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


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

Received on Wednesday, 18 February 2026 20:12:37 UTC