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

Side by Side Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-specifiers-in-left-side.html

Issue 187353003: Implement /content/ combinator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing 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 </head>
6 <body>
7 <div id="sandbox"></div>
8 <script>
9 var shadowStyle = document.createElement('style');
10 shadowStyle.innerHTML = 'content.non-exist::content div { color: red; }'
11 + 'content.content-class::content div { color: green; }'
12 + '#content-id::content div { color: blue; }';
13
14 var sandbox = document.getElementById('sandbox');
15 sandbox.appendChild(
16 createDOM('div', {'id': 'host'},
17 createShadowRoot(
18 createDOM('content', {'select': '#host-child-1'}),
19 createDOM('content', {'class': 'content-class', 'select': '#ho st-child-2'}),
20 createDOM('content', {'id': 'content-id', 'select': '#host-chi ld-3'}),
21 shadowStyle),
22 createDOM('div', {'id': 'host-child-1'},
23 document.createTextNode('normal')),
24 createDOM('div', {'id': 'host-child-2'},
25 document.createTextNode('green')),
26 createDOM('div', {'id': 'host-child-3'},
27 document.createTextNode('blue'))));
28 </script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698