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

Side by Side Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-specifiers-in-left-side.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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="resources/shadow-dom.js"></script> 4 <script src="resources/shadow-dom.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <div id="sandbox"></div> 7 <div id="sandbox"></div>
8 <script> 8 <script>
9 var shadowStyle = document.createElement('style'); 9 var shadowStyle = document.createElement('style');
10 shadowStyle.innerHTML = 'content.non-exist::-webkit-distributed(div) { color: re d; }' 10 shadowStyle.innerHTML = 'content.non-exist::content div { color: red; }'
11 + 'content.content-class::-webkit-distributed(div) { color: green; }' 11 + 'content.content-class::content div { color: green; }'
12 + '#content-id::-webkit-distributed(div) { color: blue; }'; 12 + '#content-id::content div { color: blue; }';
13 13
14 var sandbox = document.getElementById('sandbox'); 14 var sandbox = document.getElementById('sandbox');
15 sandbox.appendChild( 15 sandbox.appendChild(
16 createDOM('div', {'id': 'host'}, 16 createDOM('div', {'id': 'host'},
17 createShadowRoot( 17 createShadowRoot(
18 createDOM('content', {'select': '#host-child-1'}), 18 createDOM('content', {'select': '#host-child-1'}),
19 createDOM('content', {'class': 'content-class', 'select': '#ho st-child-2'}), 19 createDOM('content', {'class': 'content-class', 'select': '#ho st-child-2'}),
20 createDOM('content', {'id': 'content-id', 'select': '#host-chi ld-3'}), 20 createDOM('content', {'id': 'content-id', 'select': '#host-chi ld-3'}),
21 shadowStyle), 21 shadowStyle),
22 createDOM('div', {'id': 'host-child-1'}, 22 createDOM('div', {'id': 'host-child-1'},
23 document.createTextNode('normal')), 23 document.createTextNode('normal')),
24 createDOM('div', {'id': 'host-child-2'}, 24 createDOM('div', {'id': 'host-child-2'},
25 document.createTextNode('green')), 25 document.createTextNode('green')),
26 createDOM('div', {'id': 'host-child-3'}, 26 createDOM('div', {'id': 'host-child-3'},
27 document.createTextNode('blue')))); 27 document.createTextNode('blue'))));
28 </script> 28 </script>
29 </body> 29 </body>
30 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698