Re: [WICG/webcomponents] Web components should be able to easily adapt to the host page while maintaining enapsulation (Issue #986)

`::part` could be an acceptable solution for this use case if there were a way to mix in other CSS styles either silent classes, mixins or @justinfagnani’s [reference selector idea](https://github.com/w3c/csswg-drafts/issues/3714#issuecomment-1407783568). I’d love this behavior as well and could see it as 

```css
::part(button) {
  @include $ns-button;
}
```

This becomes opt-in, preserves encapsulation, can be combined with other ideas like having multiple sheets exported by a single document and has user-land benefits beyond just shadow DOM. 
  

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/986#issuecomment-1453576769

You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/986/1453576769@github.com>

Received on Friday, 3 March 2023 14:03:06 UTC