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

Test "update a style block" early return connected vs. BC-connected #27312

Open
domenic opened this issue Jan 25, 2021 · 0 comments
Open

Test "update a style block" early return connected vs. BC-connected #27312

domenic opened this issue Jan 25, 2021 · 0 comments

Comments

@domenic
Copy link
Member

domenic commented Jan 25, 2021

Context: whatwg/html#6294, which inserts an early return for when the element is not connected.

http://wpt.live/shadow-dom/ShadowRoot-interface.html, in particular

ShadowRoot.styleSheets must return a StyleSheetList sequence containing the shadow root style sheets when shadow root is open.

and

ShadowRoot.styleSheets must return a StyleSheetList sequence containing the shadow root style sheets when shadow root is closed.

tests shadowRoot.styleSheets and styles[i].sheet when the element is disconnected.

It would be good to add counterpart tests for when the element is connected, but not browsing-context connected. For example, when it's in a document created by document.implementation.createDocument(). Per the updated spec, such cases should behave differently than the disconnected case; i.e. they should not return 0-length / null.

/cc @emilio @annevk

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