Re: [w3c/webcomponents] Provide an option which allows global CSSes to style elements inside a shadow tree (#769)

> So I think that's what `::theme` is for. See [drafts.csswg.org/css-shadow-parts](https://drafts.csswg.org/css-shadow-parts/) and [w3c/csswg-drafts#2368](https://github.com/w3c/csswg-drafts/issues/2368) There is an explainer at [meowni.ca/posts/part-theme-explainer](https://meowni.ca/posts/part-theme-explainer/)

No it isn't.

1. I'm using `* { box-sizing: border-box }`. How can I make it apply to every element that I use? With `::theme` I need to add `part="my-element"` to every element.
2. I'm using `normalize.css`. How can I make it apply to every element that I use? I have to add `::theme(my-element)` to every rule in the 3rd party file `normalize.css`.

What I need is not something about *theming*. It's about global resets or customized user agent stylesheets. It works without any special configuration on every element that *I write*, but should not apply to 3rd party libraries / components unless their authors explicit say it should be.

-- 
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/769#issuecomment-436150188

Received on Tuesday, 6 November 2018 06:58:13 UTC