- From: Ryosuke Niwa <notifications@github.com>
- Date: Fri, 22 Jul 2016 01:50:25 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Friday, 22 July 2016 08:51:02 UTC
If `@import` doesn't work, it's probably more consistent to not load stylesheets at least inside a shadow tree. On the other hand, we probably can't change the behavior of a browsering-context-less document. That makes me think that the status quo of letting styles apply but failing to load `@import` might be the right behavior for a document without a browsing context as well as a shadow tree that is not connected to a document with a browsing context for consistency (since both `Document` and `ShadowRoot` has `styleSheets`, it's weird for them to behave differently). That is, make `style` always work in a shadow tree but `@import` would work if and only if the style element is connected to a document with a browsing context. --- 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/56#issuecomment-234489490
Received on Friday, 22 July 2016 08:51:02 UTC