[csswg-drafts] [css-mixins-1] Behavior for multiple `@result` rules (#13522)

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

== [css-mixins-1] Behavior for multiple `@result` rules ==
This was brought up in https://github.com/w3c/csswg-drafts/issues/13138, but never fully addressed:

```css
@mixin --m() {
  @result {
    div { color: green; }
  }
  @result {
    span { color: blue; }
  }
}
```

What is emitted from the above mixin? We seem to have two choices:

1. The last seen `@result` wins wholesale; only `span{color:blue}` is emitted.
    - It is consistent with how `@thing foo` generally overwrites a previous `@thing foo` in CSS.
    - It is consistent with how `result` works in `@function`.
2. All `@result` rules "accumulate" to form the output; `div{color:green};span{color:blue}` is emitted.
    - It is consistent with what @mirisuzanne expects.
    - TODO: Insert argument for this position.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13522 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 19:47:09 UTC