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

I think there should definitely be a filtering mechanism. Light DOM based frameworks have them, for example:

* CSS-in-JS creates hashed class names you can put anywhere, for example [Vanilla extract](https://vanilla-extract.style/documentation/styling/)
* CSS Modules has a couple of ways to compose, both inside the CSS, but also by using classes via JS imports, https://github.com/css-modules/css-modules

We also already have several ideas in this thread on ways to do filtering. We have some primitives, `@layer` and `@scope` in particular, it's a matter of picking the right one and figuring out what adjustments are needed to use them here. It's not a matter of needing to invent something completely new.

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

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

Received on Friday, 15 March 2024 16:21:05 UTC