Re: [WICG/webcomponents] "open-stylable" Shadow Roots (#909)

> I think `@scope` would be a much better control for defining what styles are pulled in - and then layers could be used on both ends to help define the cascade of those styles when applied.

What would `@scope`-based control look like?

I'm struggling to imagine a pull-based approach with `@scope`, since scopes:
- are based on selectors, and therefore closely tied to the shape of the DOM
- cannot be set for entire stylesheets (e.g. `@import 'reset.css' layer(reset)`)

The thing I like about layers is that a stylesheet within shadow DOM can *pull* styles from outside.

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

Message ID: <WICG/webcomponents/issues/909/1995152796@github.com>

Received on Wednesday, 13 March 2024 17:47:07 UTC