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

Option 1 seems to be more flexible.

Example:

```css
@mixin --m() {
  @result {
    div { color: green; }
  }
  @media (width >= 600px) {
    @result {
      span { color: blue; }
    }
  }
}
```

So I either get `div{color:green}` for viewport widths smaller than 600px or `span{color:blue}` when equal or bigger. This doesn't seem possible when accumulating them.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13522#issuecomment-3923418713 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 21:55:14 UTC