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

Unified Diff: LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector-invalid.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
Index: LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector-invalid.html
diff --git a/LayoutTests/fast/dom/shadow/distributed-pseudo-element-support-selector.html b/LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector-invalid.html
similarity index 51%
copy from LayoutTests/fast/dom/shadow/distributed-pseudo-element-support-selector.html
copy to LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector-invalid.html
index 3fdbd86ef782b141cff59ba3c165ba57eb3e785d..ad9e0e81920b9c51a4eba46be5d2bc557f560d84 100644
--- a/LayoutTests/fast/dom/shadow/distributed-pseudo-element-support-selector.html
+++ b/LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector-invalid.html
@@ -7,21 +7,22 @@
<div id="sandbox"></div>
<script>
var shadowStyle = document.createElement('style');
-shadowStyle.innerHTML = 'content::-webkit-distributed(div.hello div) { color: green; }';
+shadowStyle.innerHTML =
+ 'content::-webkit-distributed(+ div1 div2) { color: green; }' +
+ 'content::-webkit-distributed(~ div1 div2) { color: green; }';
var sandbox = document.getElementById('sandbox');
sandbox.appendChild(
- createDOM('div', {'id': 'host'},
+ createDOM('div', {},
createShadowRoot(
shadowStyle,
createDOM('content')),
- createDOM('div', {'class': 'hello'},
- document.createTextNode('normal'),
- createDOM('div', {},
- document.createTextNode('green'))),
createDOM('div', {},
- document.createTextNode('normal'),
- createDOM('div', {},
+ createDOM('div1', {},
+ createDOM('div2', {},
+ document.createTextNode('normal')))),
+ createDOM('div1', {},
+ createDOM('div2', {},
document.createTextNode('normal')))));
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698