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

Unified Diff: LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector.html

Issue 15657003: Make a '::distributed' pseudo element the first-ever client who can accept a relative selector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Introduce m_relationIsForShadowDistributed Created 7 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/distributed-pseudo-element-relative-selector-css-text.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector.html
diff --git a/LayoutTests/fast/dom/shadow/distributed-pseudo-element-match-descendant.html b/LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector.html
similarity index 55%
copy from LayoutTests/fast/dom/shadow/distributed-pseudo-element-match-descendant.html
copy to LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector.html
index fe4043e855a508d48b5a0600e0f6866988300282..beda5def701bc01fc20cb06ca9b76993cd4b700d 100644
--- a/LayoutTests/fast/dom/shadow/distributed-pseudo-element-match-descendant.html
+++ b/LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector.html
@@ -7,7 +7,7 @@
<div id="sandbox"></div>
<script>
var shadowStyle = document.createElement('style');
-shadowStyle.innerHTML = 'content::-webkit-distributed(div) { color: green; }';
+shadowStyle.innerHTML = 'content::-webkit-distributed(> div1 div2) { color: green; }';
var sandbox = document.getElementById('sandbox');
sandbox.appendChild(
@@ -15,8 +15,12 @@ sandbox.appendChild(
createShadowRoot(
shadowStyle,
createDOM('content')),
- createDOM('p', {},
- createDOM('div', {},
+ createDOM('div', {},
+ createDOM('div1', {},
+ createDOM('div2', {},
+ document.createTextNode('normal')))),
+ createDOM('div1', {},
+ createDOM('div2', {},
document.createTextNode('green')))));
</script>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector-css-text.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698