Index: LayoutTests/fast/html/imports/resources/custom-element-style.html |
diff --git a/LayoutTests/fast/html/imports/resources/custom-element-style.html b/LayoutTests/fast/html/imports/resources/custom-element-style.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c4a067f620e5a15113f2fb2789daca0263ce9efe |
--- /dev/null |
+++ b/LayoutTests/fast/html/imports/resources/custom-element-style.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<template> |
+<style> |
+@import url(hello.css); |
+</style> |
+<h1>Hello</h1> |
+</template> |
+<script> |
+var t = document.currentScript.ownerDocument.querySelector('template'); |
+var proto = Object.create(HTMLElement.prototype); |
+proto.createdCallback = function() { |
+ var root = this.createShadowRoot(); |
+ root.appendChild(document.importNode(t.content)); |
+}; |
+document.registerElement('x-test', {prototype: proto}); |
+</script> |