-
Notifications
You must be signed in to change notification settings - Fork 25
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
How does access to .cssRules behave before the sheet is "done loading" #11
Comments
In the web components issue 468, @rniwa proposed disallowing |
Disallow in what sense? Not parsed (i.e. dropped from the rule list)? Throws? Not loaded? Something else? |
Not sure, like I said, just trying to connect some dots. For that particular issue, was hoping we would be able to fetch an external resource for |
FWIW, I think this should work the same way as |
Let me close this as #25 concludes we disallow |
From the discussion at whatwg/html#2997 (especially from Tab's whatwg/html#2997 (comment)), conceptually the sheet is parsed atomically, and therefore when For this spec, the constuctor will produce a So let's not make a (basically this adds nothing to what @annevk already said above) |
Closed with #33 (like the above comment says, we aren't resolving Promise until it's done loading) |
E.g. before all the @imports have finished. Does it throw? Does it allow mutation of the rule list while loads are still in progress? Something else?
The text was updated successfully, but these errors were encountered: