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

Maybe we don't need documents after all #58

Closed
domenic opened this issue Oct 23, 2018 · 0 comments
Closed

Maybe we don't need documents after all #58

domenic opened this issue Oct 23, 2018 · 0 comments

Comments

@domenic
Copy link
Contributor

domenic commented Oct 23, 2018

Related to #57.

At TPAC we discussed what exactly ties stylesheets to documents, if anything. Our conclusion was that it's only the base URL, which is set at construction time. So in this sense document.createCSSStyleSheetSync() is equivalent to a hypothetical window.createCSSStyleSheetSync({ baseURL: document.baseURI }) or new CSSStyleSheet({ baseURL: document.baseURI }).

Given this, I suggest we just infer the base URL at construction time, in the same way many other web platform APIs do. Namely we can use the current settings object's API base URL.

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

2 participants