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

Side by Side Diff: LayoutTests/fast/dom/shadow/multiple-content-combinator.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>
8 <div id="sandbox"></div>
9 <pre id="console"></pre>
10 <script>
11
12 function colorOf(node)
13 {
14 return document.defaultView.getComputedStyle(node, null).getPropertyValue('c olor');
15 }
16
17 function cleanUp()
18 {
19 document.getElementById('sandbox').innerHTML = '';
20 }
21
22 // This is the same test as content-pseudo-element-nested.html did.
23 // i.e. nested ::content => multiple /content/.
24 var sandbox = document.getElementById('sandbox');
25 sandbox.appendChild(
26 createDOM('div', {'id': 'host'},
27 createShadowRoot(
28 createDOM('div', {'id': 'nested-host'},
29 createShadowRoot(
30 createDOM('style', {},
31 document.createTextNode('div content /content/ div conte nt /content/ div.green { color: green; }')),
32 document.createTextNode('text1'),
33 createDOM('div', {},
34 document.createTextNode('text2'),
35 createDOM('content', {'select': 'div'}))),
36 createDOM('div', {'class': 'green'},
37 document.createTextNode('text3'),
38 createDOM('content', {})))),
39 createDOM('div', {'class': 'green'},
40 document.createTextNode('green')),
41 createDOM('div', {},
42 document.createTextNode('normal'))));
43
44 shouldBe('colorOf(document.querySelector("#host > div.green"))', '"rgb(0, 128, 0 )"');
45
46 cleanUp();
47 </script>
48 </body>
49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698