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

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

Issue 1575363006: Implement matching part of ::slotted() pseudo element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink_slotted_parser
Patch Set: ready for review 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>::slotted pseudo elements with dynamic attribute change</title>
rune 2016/01/20 12:53:32 We normally drop <title>. Also, in this case it's
kochi 2016/01/21 05:09:36 Done.
3 <div id="host">
4 <div id="child">I should be green.</div>
5 </div>
6 <script>
7 if (window.testRunner)
8 testRunner.waitUntilDone();
9
10 var shadowRoot = document.getElementById('host').attachShadow({mode: 'open'});
11 shadowRoot.innerHTML = '<style>slot::slotted(.selected) { ' +
12 'background: green; }</style>' +
13 '<slot></slot>';
14
15 setTimeout(function() {
16 document.getElementById('child').classList.add('selected');
17 if (window.testRunner)
18 testRunner.notifyDone();
19 }, 0);
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698