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

@LeaVerou I think that basic idea (of `@include`) could feasibly be extended to extend single selectors as well which maintains encapsulation and plays nice with other existing APIs. The entry for an inclusion API could start with something like a reference selector, but eventually be broadened to importing selector styles from the shadow host's root node. 

I can envision something like the following catching on

```css
/** Styles within a shadow DOM */
button {
  @include from-root(button); /* or */
  @include from-root(.btn);
}
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/986#issuecomment-1457023721
You are receiving this because you are subscribed to this thread.

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

Received on Monday, 6 March 2023 21:25:15 UTC