Re: [webcomponents] [Shadow]: Style element should specify when to create and add style sheet in shadow DOM (bugzilla: 26850) (#56)

I don't have strong preference for either options.

(2) could be consistent with document.styleSheets case in that the array reflects `<style>`
elements which actually affects the rendering (i.e. until a shadow host is attached to document,
the content of the stylesheet doesn't make much sense).
Although you could argue that (1) is more consistent, in that `<style>` is counted in shadowroot
when it is attached to its shadow root's tree, like when `<style>` is counted when it is attached
to document as you mentioned in the comment above. 

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/56#issuecomment-174438133

Received on Monday, 25 January 2016 08:43:04 UTC