This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27418 - [Shadow]: Need to define what .styleSheets actually does on a shadow root
Summary: [Shadow]: Need to define what .styleSheets actually does on a shadow root
Status: RESOLVED MOVED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on: 26850
Blocks: 28552
  Show dependency treegraph
 
Reported: 2014-11-24 14:56 UTC by Boris Zbarsky
Modified: 2015-05-27 03:20 UTC (History)
7 users (show)

See Also:


Attachments

Description Boris Zbarsky 2014-11-24 14:56:06 UTC
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 Boris Zbarsky 2014-11-24 14:56:46 UTC
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 William Chen 2014-11-24 18:13:03 UTC
There is already a bug for this: https://www.w3.org/Bugs/Public/show_bug.cgi?id=26850
Comment 3 Boris Zbarsky 2014-11-24 19:22:46 UTC
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.
Comment 4 Hayato Ito 2015-05-27 03:20:49 UTC
Moved to https://github.com/w3c/webcomponents/issues/70