Index: LayoutTests/fast/dom/shadow/outer-scope-wins.html |
diff --git a/LayoutTests/fast/dom/shadow/outer-scope-wins.html b/LayoutTests/fast/dom/shadow/outer-scope-wins.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..011ed289457a9fd72652053501b0ce509cd7b3db |
--- /dev/null |
+++ b/LayoutTests/fast/dom/shadow/outer-scope-wins.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<style>.t { color: green }</style> |
+<div id="host"> |
+ <span id="t" class="t">This text should be green.</span> |
+</div> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ |
+var root = host.createShadowRoot(); |
+root.innerHTML = '<style>::content > * { color: red }</style><content></content>'; |
+document.write(getComputedStyle(t).color == "rgb(0, 128, 0)" ? "PASS" : "FAIL"); |
+</script> |