Re: [w3c/webcomponents] Theming options for shadow roots (#864)

> Another complain / concern I have with ::part and the old ::theme is that there isn't a convenient way to specify a set of properties which are allowed to be changed. It seems like a pretty big oversight to me.

I think the way importance was defined in Shadow DOM (so that the rules in the shadow root always win) were intended to address such a thing (at least for `::part`, not familiar with the old `::theme` spec).

So you could use `!important` to avoid the outside overriding specific properties, or `all: revert !important` or such to avoid overriding any properties, and explicitly opt-in after or such.

-- 
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/864#issuecomment-579658956

Received on Wednesday, 29 January 2020 09:00:57 UTC