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

WPT html/semantics/document-metadata/interactions-of-styling-and-scripting/conditionally-block-rendering-on-link-media-attr.html sees a still-loading stylesheet as a member of document.stylesheets with empty cssRules; WPT test isn't expecting this #25099

Open
pshaughn opened this issue Dec 4, 2019 · 0 comments

Comments

@pshaughn
Copy link
Member

@pshaughn pshaughn commented Dec 4, 2019

The test doesn't have any explicit assertions about this, it just expects that if it's looking in document.stylesheets at a stylesheet that's part of the test, .cssRules[0] on that stylesheet will be a css rule and not undefined. Possibly stylesheets are only supposed to be added to document.stylesheets after they're done loading? whatwg/html#696 suggests this might be a fine point that isn't properly specified yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.