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

Side by Side Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-match-descendant.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
12 var sandbox = document.getElementById('sandbox');
13 sandbox.appendChild(
14 createDOM('div', {},
15 createShadowRoot(
16 shadowStyle,
17 createDOM('content')),
18 createDOM('p', {},
19 createDOM('div', {},
20 document.createTextNode('green')))));
21 </script>
22 </body>
23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698