Re: [csswg-drafts] [css-mixins-1] Consider a way for mixins to be applied with the style attribute (#13077)

Is there a reason that `@apply` isn't valid in the `style` attribute?
This seems like something that authors will want to do.

I can understand that something like this maybe shouldn't work:

```
<style>
@mixin --foo() {
  > .b {
    color: green;
  }
}
<style>

<div class="a" style="@apply --foo()">
  <div class="b">hello</div>
</div>
```


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


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

Received on Sunday, 11 January 2026 18:03:07 UTC