Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
hayatoito opened this issue May 25, 2015 · 0 comments

Comments

@hayatoito
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant