Index: third_party/WebKit/LayoutTests/shadow-dom/cascade-outer-scope2.html |
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/cascade-outer-scope2.html b/third_party/WebKit/LayoutTests/shadow-dom/cascade-outer-scope2.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0d24e322131fe7300512553f19dd7f2a45b870d3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/shadow-dom/cascade-outer-scope2.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.attachShadow({'mode': 'open'}); |
+root.innerHTML = '<style>::slotted(*) { color: red }</style><slot></slot>'; |
+document.write(getComputedStyle(t).color == "rgb(0, 128, 0)" ? "PASS" : "FAIL"); |
+</script> |