Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: LayoutTests/fast/html/imports/resources/custom-element-style.html

Issue 202813002: [HTML Import] Let script block by pending resources created by lifecycle callback (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Landing Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <template>
3 <style>
4 @import url(hello.css);
5 </style>
6 <h1>Hello</h1>
7 </template>
8 <script>
9 var t = document.currentScript.ownerDocument.querySelector('template');
10 var proto = Object.create(HTMLElement.prototype);
11 proto.createdCallback = function() {
12 var root = this.createShadowRoot();
13 root.appendChild(document.importNode(t.content));
14 };
15 document.registerElement('x-test', {prototype: proto});
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698