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

Unified Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-scoped.html

Issue 315173002: Revert of Remove scoped styles. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: LayoutTests/fast/dom/shadow/content-pseudo-element-scoped.html
diff --git a/LayoutTests/fast/dom/shadow/content-pseudo-element-scoped.html b/LayoutTests/fast/dom/shadow/content-pseudo-element-scoped.html
new file mode 100644
index 0000000000000000000000000000000000000000..7f30e8c9d6c7d12d84ff79f377701abda092d5ec
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/content-pseudo-element-scoped.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="resources/shadow-dom.js"></script>
+</head>
+<body>
+<div id="sandbox"></div>
+<script>
+var shadowStyle = document.createElement('style');
+shadowStyle.innerHTML = 'content::content div { color: green; }';
+shadowStyle.setAttribute('scoped', true);
+
+var sandbox = document.getElementById('sandbox');
+sandbox.appendChild(
+ createDOM('div', {'id': 'host'},
+ createShadowRoot(
+ createDOM('content', {'select': '#host-child1'}),
+ createDOM('div', {},
+ createDOM('content', {'select': '#host-child2'}),
+ shadowStyle)),
+ createDOM('div', {'id': 'host-child1'},
+ document.createTextNode('normal')),
+ createDOM('div', {'id': 'host-child2'},
+ document.createTextNode('green'))));
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698