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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/host-context-pseudo-class-css-text.html

Issue 1576553002: Pseudo element selectors in compound selector lists are invalid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review issues Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/host-context-pseudo-class-css-text-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <style id="style1"> 5 <style id="style1">
6 .foo:host-context(div, body.mytheme, p#myid, .bar::before, span:hover) > div { d isplay: block; } 6 .foo:host-context(div, body.mytheme, p#myid, .bar:first-child, span:hover) > div { display: block; }
7 :host-context(*) { display: block; } 7 :host-context(*) { display: block; }
8 </style> 8 </style>
9 <style id="style-invalid"> 9 <style id="style-invalid">
10 :host-context(div div) { display: block } 10 :host-context(div div) { display: block }
11 :host-context(div > div) { display: block } 11 :host-context(div > div) { display: block }
12 :host-context(div + div) { display: block } 12 :host-context(div + div) { display: block }
13 :host-context(div ~ div) { display: block } 13 :host-context(div ~ div) { display: block }
14 :host-context) { display: block } 14 :host-context) { display: block }
15 :host-context() { display: block; } 15 :host-context() { display: block; }
16 </style> 16 </style>
17 </head> 17 </head>
18 <script> 18 <script>
19 description("Test for cssText of ':host-context()' rule."); 19 description("Test for cssText of ':host-context()' rule.");
20 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(0). cssText", ".foo:host-context(div,body.mytheme,p#myid,.bar::before,span:hover) > div { display: block; }"); 20 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(0). cssText", ".foo:host-context(div,body.mytheme,p#myid,.bar:first-child,span:hover ) > div { display: block; }");
21 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(1). cssText", ":host-context(*) { display: block; }"); 21 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(1). cssText", ":host-context(*) { display: block; }");
22 shouldBe("document.getElementById('style-invalid').sheet.cssRules.length", "0"); 22 shouldBe("document.getElementById('style-invalid').sheet.cssRules.length", "0");
23 </script> 23 </script>
24 </html> 24 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/host-context-pseudo-class-css-text-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698