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

Side by Side Diff: LayoutTests/fast/dom/shadow/content-pseudo-element.html

Issue 21151005: Implement ::content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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::-webkit-distributed(div) { color: green; }'; 10 shadowStyle.innerHTML = 'content::content div { color: green; }';
11 11
12 var sandbox = document.getElementById('sandbox'); 12 var sandbox = document.getElementById('sandbox');
13 sandbox.appendChild( 13 sandbox.appendChild(
14 createDOM('div', {}, 14 createDOM('div', {},
15 createShadowRoot( 15 createShadowRoot(
16 shadowStyle, 16 shadowStyle,
17 createDOM('content')), 17 createDOM('content')),
18 createDOM('div', {}, 18 createDOM('div', {},
19 document.createTextNode('green')))); 19 document.createTextNode('green'))));
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/content-pseudo-element-css-text.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698