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

Side by Side Diff: LayoutTests/fast/dom/shadow/content-combinator-with-host-pseudo-class-2.html

Issue 205563004: Revert of Implement /content/ combinator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed patch conflict 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <html>
3 <head>
4 <script src="resources/shadow-dom.js"></script>
5 <script src="../../../resources/js-test.js"></script>
6 </head>
7 <body class="bodyClass">
8 <div id="sandbox"></div>
9 <pre id="console"></pre>
10 </body>
11 <script>
12 description("Test for crbug.com/274063: cannot style /content/ with a rule that includes :host.");
13
14 var sandbox = document.getElementById('sandbox');
15
16 sandbox.appendChild(
17 createDOM('div', {'id': 'host1'},
18 createShadowRoot(
19 createDOM('style', {},
20 document.createTextNode(':host > div > content /content/ * { col or: green; }')),
21 createDOM('div', {'id': 'host2'},
22 createShadowRoot(
23 createDOM('style', {},
24 document.createTextNode(':host > content /content/ * { c olor: red; }')),
25 createDOM('content', {'id': 'content2'})),
26 createDOM('content', {'id': 'content1'}))),
27 createDOM('div', {'class': 'content'},
28 document.createTextNode('content'))));
29
30 shouldBe('window.getComputedStyle(document.querySelector("#host1 > .content")).c olor', '"rgb(0, 128, 0)"');
31 </script>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698