Re: [w3c/webcomponents] Support Custom Pseudo-elements (#300)

@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