This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
It would be cool to support something like: import mystyles from "foo.css"; ...which would result in a <link> being added to the Document (if one isn't there already) pointing to foo.css. "mystyles" would expose that to the script somehow. Obviously normally this would be just getting a reference to an already-downloaded style sheet, since we don't want to be doing these late-bound (same with how we're probably going to want to predeclare the modules that are imported, so that they're not fetched late-bound either, in pre-HTTP2 environments).
Manipulating the document as a side-effect probably isn't what we want; instead, let's just make stylesheets constructable and have the loader hook do *that* instead.
Yeah. Importing an image wouldn't want to do anything to the DOM either.
Ideas have evolved a bit since 2014 and there's no real need to track this here.