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

Unified Diff: LayoutTests/fast/dom/shadow/outer-scope-wins.html

Issue 1224673002: Implement proposed shadow tree cascade order. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added documentation Created 5 years, 4 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/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>

Powered by Google App Engine
This is Rietveld 408576698