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

Unified Diff: LayoutTests/fast/dom/shadow/style-sharing-host-attribute.html

Issue 1009893004: Missing collectMatchingShadowHostRules call from hasAnyMatchingRules. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/style-sharing-host-attribute-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/style-sharing-host-attribute.html
diff --git a/LayoutTests/fast/dom/shadow/style-sharing-host-attribute.html b/LayoutTests/fast/dom/shadow/style-sharing-host-attribute.html
new file mode 100644
index 0000000000000000000000000000000000000000..f42411acc8932eaa8175f7aedcb8e4afbf315402
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/style-sharing-host-attribute.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<template>
+ <style>:host([green]) { color: green }</style>
+ <content></content>
+</template>
+<div>
+ <div></div>
+ <div green>This text should be green</div>
+</div>
+<script>
+description("Don't share style between two hosts with different attribute matching for :host([])");
+
+var template = document.querySelector("template");
+
+var roots = document.querySelectorAll("div > div");
+for (var i = 0; i < roots.length; i++)
+ roots[i].createShadowRoot().appendChild(document.importNode(template.content, true));
+
+shouldBe("getComputedStyle(roots[1]).color", "'rgb(0, 128, 0)'");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/style-sharing-host-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698