[webcomponents] [Shadow]: Need to define what .styleSheets actually does on a shadow root (bugzilla: 27418) (#70)

Title: [Shadow]: Need to define what .styleSheets actually does on a shadow root (bugzilla: 27418)

Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27418

----
comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27418#c0
*Boris Zbarsky* wrote on 2014-11-24 14:56:06 +0000.

The spec says:

  On getting, the attribute must return a StyleSheetList sequence containing the
  shadow root style sheets.

The term "shadow root style sheets" is not defined anywhere.  In fact, the string "sheet" does not appear anywhere else in this spec.

This needs to actually be defined, with particular attention to older shadow roots (e.g. do things in older shadow trees even load/parse their stylesheets?).

----

comment: 1
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27418#c1
*Boris Zbarsky* wrote on 2014-11-24 14:56:46 +0000.

And in fact, https://bugzilla.mozilla.org/show_bug.cgi?id=1098270#c18 has at least one other case that should be considered.

----

comment: 2
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27418#c2
*William Chen* wrote on 2014-11-24 18:13:03 +0000.

There is already a bug for this: https://www.w3.org/Bugs/Public/show_bug.cgi?id=26850

----

comment: 3
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27418#c3
*Boris Zbarsky* wrote on 2014-11-24 19:22:46 +0000.

That's not the same bug.

There are two separate issues:

1)  When do stylesheets get created for style/link elements?  That's bug 26850.

2)  What appears in the shadow root's .styleSheets and in what order?  That's
    this bug.

Figuring out bug 26850 is probably a prerequisite for resolving this one.  But once that's done, this bug will still need to define which elements' stylesheets appear in the list, and the order.

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

Received on Monday, 25 May 2015 08:49:32 UTC