Index: LayoutTests/fast/css/shadow-style-removed-out-of-document.html |
diff --git a/LayoutTests/fast/css/shadow-style-removed-out-of-document.html b/LayoutTests/fast/css/shadow-style-removed-out-of-document.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dde40fcfdf0d820ba88697d2a952572dc6b64989 |
--- /dev/null |
+++ b/LayoutTests/fast/css/shadow-style-removed-out-of-document.html |
@@ -0,0 +1,8 @@ |
+<script src="../../resources/js-test.js"></script> |
tasak
2014/06/10 09:13:30
I'm sorry. We still need <!DOCTYPE html>.
kochi
2014/06/10 09:30:30
Done.
|
+<script> |
+var div = document.createElement('div'); |
tasak
2014/06/10 09:13:30
Would you add description? i.e. description("...")
kochi
2014/06/10 09:30:30
Done.
|
+var root = div.createShadowRoot(); |
+root.innerHTML = '<style>div { color: green; }</style><div>Hello world</div>'; |
+// Remove style element before its shadow root is attached to document. |
+root.removeChild(root.firstChild); |
+</script> |