Re: [csswg-drafts] [css-shadow-parts] Let ::theme() penetrate closed shadows

You have a note in [proposed spec](https://drafts.csswg.org/css-shadow-parts-1/)

> It’s important to note that ::part() and ::theme() offer absolutely zero new theoretical power.

However this isn't true, you already say in the following statement that you can avoid overstyling. This happens because `::part`/`::theme` *can't* accidentally inherit styles whereas custom properties can.

With that in mind, if `::theme` pierces shadow roots in the same way that custom variables do, is there any point in having `::theme` over just implementing `@apply`, as it seems to me that any `::theme(some-name)` would be identical to `@apply(--some-name)` under this shadow-piercing scheme.

-- 
GitHub Notification of comment by Jamesernator
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2381#issuecomment-370311865 using your GitHub account

Received on Monday, 5 March 2018 05:14:28 UTC