- From: Romain Menke via GitHub <noreply@w3.org>
- Date: Sun, 11 Jan 2026 18:03:06 +0000
- To: public-css-archive@w3.org
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