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

Side by Side Diff: LayoutTests/fast/dom/shadow/distributed-pseudo-element-relative-selector-css-text.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 <style id="style1"> 5 <style id="style1">
6 .foo::-webkit-distributed(div .bar::before) { display: block; } 6 .foo::-webkit-distributed(> div .bar::before) { display: block; }
7 </style> 7 </style>
8 </head> 8 </head>
9 <script> 9 <script>
10 description("Test for cssText of '::distributed()' rule."); 10 description("Test for cssText of '::distributed()' rule.");
11 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(0). cssText", ".foo::-webkit-distributed(div .bar::before) { display: block; }"); 11 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(0). cssText", ".foo::-webkit-distributed(> div .bar::before) { display: block; }");
12 </script> 12 </script>
13 <script src="../../js/resources/js-test-post.js"></script> 13 <script src="../../js/resources/js-test-post.js"></script>
14 </html> 14 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698