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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element.html

Issue 1523843004: Add support for new CSS ::slotted() pseudo element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase / fix comments for tests (FYI) Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-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
(Empty)
1 <!DOCTYPE html>
2 <script src="resources/shadow-dom.js"></script>
3 <div id="sandbox"></div>
4 <script>
5 var shadowStyle = document.createElement('style');
6 shadowStyle.innerHTML = '::slotted(div) { color: green; }'
7 + '::slotted(div.blue) { color: blue; }'
8 + 'slot::slotted(div#red) { color: red; }'
9 + 'slot::slotted(div[data-color=purple]) { color: purple ; }';
10
11 var sandbox = document.getElementById('sandbox');
12 sandbox.appendChild(
13 createDOM('div', {},
14 attachShadow(
15 {'mode': 'open'},
16 shadowStyle,
17 createDOM('slot')),
18 createDOM('div', {},
19 document.createTextNode('green')),
20 createDOM('div', {class: 'blue'},
21 document.createTextNode('blue')),
22 createDOM('div', {id: 'red'},
23 document.createTextNode('red')),
24 createDOM('div', {'data-color': 'purple'},
25 document.createTextNode('purple'))));
26 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-css-text.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698