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

Side by Side Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-scoped.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::content div { color: green; }';
11 shadowStyle.setAttribute('scoped', true);
12
13 var sandbox = document.getElementById('sandbox');
14 sandbox.appendChild(
15 createDOM('div', {'id': 'host'},
16 createShadowRoot(
17 createDOM('content', {'select': '#host-child1'}),
18 createDOM('div', {},
19 createDOM('content', {'select': '#host-child2'}),
20 shadowStyle)),
21 createDOM('div', {'id': 'host-child1'},
22 document.createTextNode('normal')),
23 createDOM('div', {'id': 'host-child2'},
24 document.createTextNode('green'))));
25 </script>
26 </body>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698