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

Make <style> work in shadow trees #1137

Merged
merged 1 commit into from
Apr 29, 2016
Merged

Make <style> work in shadow trees #1137

merged 1 commit into from
Apr 29, 2016

Conversation

annevk
Copy link
Member

@annevk annevk commented Apr 27, 2016

Also fix a longstanding issue that was pointed out in a comment, that
<style> elements work regardless of whether their node document is
associated with a browsing context.

Also perform the cleanup requested in the source.

Also fix a longstanding issue that was pointed out in a comment, that
<style> elements work regardless of whether their node document is
associated with a browsing context.

Also perform the cleanup requested in the source.
@annevk
Copy link
Member Author

annevk commented Apr 28, 2016

FYI, @hayatoito, @rniwa, @smaug----.

@domenic domenic added the topic: shadow Relates to shadow trees (as defined in DOM) label Apr 28, 2016
@hayatoito
Copy link
Member

Looks good to me.

@zcorpan
Copy link
Member

zcorpan commented Apr 29, 2016

LGTM

@annevk annevk merged commit 89d97c8 into master Apr 29, 2016
@annevk annevk deleted the shadow-style branch April 29, 2016 10:32
@@ -13924,16 +13918,14 @@ own thing rather than part of the extended sentence -->
<li><p>If <var>element</var> has an <span>associated CSS style sheet</span>, <span
data-x="remove a CSS style sheet">remove the CSS style sheet</span> in question.</p></li>

<li><p>If <var>element</var> is not <span>in a <code>Document</code></span>, then abort
these steps.</p></li> <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2740 -->
<li><p>If <var>element</var> is not <span>in a shadow-including document</span>, then abort these
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would mean that shadowRoot.stylesheets would not include a stylesheet when the shadow root is disconnected from a document. That doesn't reflect what we discussed in WICG/webcomponents#56.

It looks like we need a separate bug for CSS OM as well: https://drafts.csswg.org/cssom/#extensions-to-the-document-interface

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed #1194 to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: shadow Relates to shadow trees (as defined in DOM)
Development

Successfully merging this pull request may close these issues.

5 participants