Re: [w3c/webcomponents] Shadow DOM, <style>, and document.styleSheets (#56)

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