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> |