[Bug 22539] [Shadow]: Add support for external stylesheets using link rel="stylesheet"

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22539

--- Comment #5 from Steve Orvell <sorvell@chromium.org> ---
I agree with Dimitri and he has a good basic summary.

We need to resolve the fetching issues with using remote stylesheets in
shadowRoots before adding any new behavior, and the imperative api Dimitri
outlined should address this.

The basic problem is that if a style element that has remote content (@import)
is added to a shadowRoot, the remote content is fetched. Imagine that an author
wants to create N shadowRoots. The author uses the best practice of putting
style elements inside shadowRoot but wants to use a remote stylesheet in each
one. This currently requires N network requests, even if there is only 1
referenced remote stylesheet.

The idea behind `root.stylesheets.add(stylesheet)` is that you can apply a
stylesheet to a shadowRoot without causing it to re-fetch or parse.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 29 May 2014 16:37:43 UTC