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

Unified Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-overridden-2.html

Issue 205563004: Revert of Implement /content/ combinator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict Created 6 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: LayoutTests/fast/dom/shadow/content-pseudo-element-overridden-2.html
diff --git a/LayoutTests/fast/dom/shadow/content-pseudo-element-overridden-2.html b/LayoutTests/fast/dom/shadow/content-pseudo-element-overridden-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..57a1b3da5cb44ee2c0d6f30328057f551239aa8d
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/content-pseudo-element-overridden-2.html
@@ -0,0 +1,31 @@
+<!doctype html>
+<html>
+<head>
+<script src="resources/shadow-dom.js"></script>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body class="bodyClass">
+ <div id='sandbox'></div>
+ <pre id='console'></pre>
+</body>
+<script>
+description('Test for crbug.com/274059. Compare rules from a style in a shadow tree with ::content in a different shadow tree.');
+
+var sandbox = document.getElementById('sandbox');
+sandbox.appendChild(
+ createDOM('div', {'id': 'host'},
+ createShadowRoot(
+ createDOM('style', {},
+ document.createTextNode('::content > * { color: green; }')),
+ createDOM('content', {})),
+ createDOM('div', {'id': 'hostChild', 'class': 'contentClass'},
+ createShadowRoot(
+ createDOM('style', {},
+ document.createTextNode(':host { color: red; }')),
+ createDOM('span', {},
+ document.createTextNode('Hello'))))));
+shouldBe('window.getComputedStyle(getNodeInTreeOfTrees("hostChild")).color', '"rgb(0, 128, 0)"');
+sandbox.innerHTML = '';
+
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698