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

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

Issue 212383002: Drop empty list :host() and :host-context(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 <style id="style1">
6 .foo:host-context(div, body.mytheme, p#myid, .bar::before, span:hover) > div { d isplay: block; }
7 :host-context(*) { display: block; }
8 </style>
9 <style id="style-invalid">
10 :host-context(div div) { display: block }
11 :host-context(div > div) { display: block }
12 :host-context(div + div) { display: block }
13 :host-context(div ~ div) { display: block }
14 :host-context) { display: block }
15 :host-context() { display: block; }
16 </style>
17 </head>
18 <script>
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; }");
21 shouldBeEqualToString("document.getElementById('style1').sheet.cssRules.item(1). cssText", ":host-context(*) { display: block; }");
22 shouldBe("document.getElementById('style-invalid').sheet.cssRules.length", "0");
23 </script>
24 </html>
OLDNEW
« no previous file with comments | « no previous file | 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