- From: Hayato Ito <notifications@github.com>
- Date: Sun, 11 Nov 2018 21:46:38 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 12 November 2018 05:47:00 UTC
Applying CSS rules from outside without opt-in from a component author (an owner of shadow tree) couldn't be a starter, in any case, I think. I am totally aware that there has been a strong demand for such a *global* stylesheeet primitive, however, any proposal would be hard to accept if the proposal doesn't require *opt-in* from a component author. ` globalStyle?: 'permit' | 'forbid';` can be one of `opt-in` ideas, however, I would like to see how our existing lower primitive, such as [Construtable Stylesheet objects](https://wicg.github.io/construct-stylesheets/index.html), can be used by web developers to achieve the equivalent of *global* styleseet effectively in the user land. If there is still missing lower primitives, such as a hook for `DocumentOrShadowRoot.adoptesStylesheet`, we are happy to consider that. Basically, we don't want to rush to provide higher primitives, without web developers having enough time to play with lower primitives and find more flexible way to achieve the goal. Higher primitives are unlikely to be flexible. -- 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-437763823
Received on Monday, 12 November 2018 05:47:00 UTC