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

Unified Diff: LayoutTests/fast/css/shadow-style-removed-out-of-document.html

Issue 325663003: Remove scoped styles (retry) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update layouttest for addressing tasak's comments. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/shadow-style-removed-out-of-document-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/css/shadow-style-removed-out-of-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698