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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/cascade-outer-scope2.html

Issue 1803933002: Use correct cascading order for Shadow DOM v1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix enum Created 4 years, 9 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: 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..d21521cd60f81444c0dc56b9187a0a68d9628497
--- /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>

Powered by Google App Engine
This is Rietveld 408576698