Skip to content

Maybe we don't need documents after all #58

Closed

Description

@domenic

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions