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

the asynchronous createCSSStyleSheet method isn't actually asynchronous #42

Closed
dbaron opened this issue Oct 23, 2018 · 1 comment
Closed

Comments

@dbaron
Copy link
Contributor

dbaron commented Oct 23, 2018

https://wicg.github.io/construct-stylesheets/#dom-document-createcssstylesheet claims to define an asynchronous method to create a style sheet, but it doesn't actually say anywhere to complete the rest of the steps in the list of steps at some later time. That implies that it's actually defining a synchronous method. It should probably do some (most?) of the steps later.

@domenic
Copy link
Contributor

domenic commented Oct 23, 2018

Concretely I guess the "Wait for loading of @import rules in sheet" should be done "in parallel". As written it blocks the main thread.

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

No branches or pull requests

3 participants