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

Unified Diff: LayoutTests/fast/dom/shadow/style-with-cat.html

Issue 273523008: SelectorChecker::parentElement should walk up to ShadowHost only if an element is in a shadow tree … (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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-with-cat-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-with-cat.html
diff --git a/LayoutTests/fast/dom/shadow/style-with-cat.html b/LayoutTests/fast/dom/shadow/style-with-cat.html
index 2784d4020e17538b1946fa37d9f2d155e35e773b..6fcd5a9487abeedcd60ab3211bbf287dfe1513e8 100644
--- a/LayoutTests/fast/dom/shadow/style-with-cat.html
+++ b/LayoutTests/fast/dom/shadow/style-with-cat.html
@@ -399,6 +399,27 @@ borderColorShouldBe('host//target', 'rgb(0, 128, 0)');
cleanUp();
+sandbox.appendChild(
+ createDOM('div', {'id': 'host'},
+ createShadowRoot(
+ createDOM('style', {},
+ document.createTextNode('* /deep/ .x-bar div { border: 1px solid red; }')),
+ createDOM('div', {'id': 'x-foo'},
+ document.createTextNode('x-foo')),
+ createDOM('div', {},
+ createDOM('div', {'id': 'x-bar-host', 'class': 'x-bar'},
+ createShadowRoot(
+ createDOM('div', {'id': 'x-bar-target'},
+ document.createTextNode('x-bar')),
+ createDOM('div', {'id': 'x-zot-host', 'class': 'x-zot'},
+ createShadowRoot(
+ createDOM('div', {'id': 'x-zot-target'},
+ document.createTextNode('x-zot'))))))))));
+
+borderColorShouldNotBe('host/x-bar-host/x-bar-target', 'rgb(255, 0, 0)');
+borderColorShouldNotBe('host/x-bar-host/x-zot-host/x-zot-target', 'rgb(255, 0, 0)');
+cleanUp();
+
</script>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/style-with-cat-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698