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 26850 - [Shadow]: Style element should specify when to create and add style sheet in shadow DOM
Summary: [Shadow]: Style element should specify when to create and add style sheet in ...
Status: RESOLVED MOVED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Linux
: P1 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 27375 27418
  Show dependency treegraph
 
Reported: 2014-09-18 18:32 UTC by William Chen
Modified: 2015-05-27 03:26 UTC (History)
7 users (show)

See Also:


Attachments

Description William Chen 2014-09-18 18:32:10 UTC
The spec currently specifies the ShadowRoot styleSheets property as:

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

The spec for the style element only specifies creating sheets for elements "in a Document":

https://html.spec.whatwg.org/multipage/semantics.html#update-a-style-block

The spec for "create a CSS style sheet" only adds sheets to the document:

http://dev.w3.org/csswg/cssom/#create-a-css-style-sheet

As it's currently specified, .styleSheets always returns an empty list.
Comment 1 Simon Pieters 2014-09-19 11:15:21 UTC
HTML and/or CSSOM can probably be changed if needed.
Comment 2 Ian 'Hixie' Hickson 2014-09-26 18:27:21 UTC
Yeah. Tell us what needs changing.
Comment 3 Kenji Baheux 2014-12-04 07:45:01 UTC
Hayato: let me increase the priority since we probably need to resolve this one to move forward on 27418
Comment 4 Hayato Ito 2014-12-04 07:50:42 UTC
I think this is yet another instance of 'In a Document' issue.
See https://www.w3.org/Bugs/Public/show_bug.cgi?id=26365.
Comment 5 Hayato Ito 2015-05-27 03:26:06 UTC
Moved to https://github.com/w3c/webcomponents/issues/56