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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-host-pseudos-in-compound.html

Issue 1872343002: Allow multiple host pseudos in same compound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ... and a test with :host() Created 4 years, 8 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/multiple-host-pseudos-in-compound-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 <script src="../../../resources/js-test.js"></script>
3 <div id="host">Should be green</div>
4 <script>
5 description("Multiple :host(-context) pseudos in same compound.");
6
7 host.createShadowRoot();
8
9 [
10 ":host:host-context(body)",
11 ":host-context(:not(.nomatch)):host",
12 ":host:host:host",
13 ":host-context(body):host-context(html)",
14 ":host(:not(.nomatch)):host"
15 ].forEach((selector) => {
16 host.shadowRoot.innerHTML = "<style>" + selector + "{color:green}</style ><content/>";
17 shouldBeEqualToString("getComputedStyle(host).color", "rgb(0, 128, 0)");
18
19 host.shadowRoot.innerHTML = "<style>" + selector + "::before" + "{color: green;content:'green'}</style><content/>";
20 shouldBeEqualToString("getComputedStyle(host, '::before').color", "rgb(0 , 128, 0)");
21 });
22
23 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/multiple-host-pseudos-in-compound-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698