- From: Jouni Koivuviita <notifications@github.com>
- Date: Sun, 08 Jan 2017 11:07:43 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 8 January 2017 19:08:34 UTC
@seaneking I’m not entirely sure, but I think you can solve your use case in the following way (nesting `@apply`):
```css
x-foo {
--my-mixin: {
background: blue;
@apply --my-mixin-extras;
};
}
x-foo.styled {
--my-mixin-extras: {
border: 1px solid red;
};
}
```
It definitely feels like a workaround (and is it even allowed by the proposed spec?), as you need to introduce another name for the mixin after each “level”.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/300#issuecomment-271171613
Received on Sunday, 8 January 2017 19:08:34 UTC