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

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: rebase 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 <div id="host">
3 <div id="child">I should be green.</div>
4 </div>
5 <script>
6 if (window.testRunner)
7 testRunner.waitUntilDone();
8
9 var shadowRoot = document.getElementById('host').attachShadow({mode: 'open'});
10 shadowRoot.innerHTML = '<style>slot::slotted(.selected) { ' +
11 'background: green; }</style>' +
12 '<slot></slot>';
13
14 setTimeout(function() {
15 document.getElementById('child').classList.add('selected');
16 if (window.testRunner)
17 testRunner.notifyDone();
18 }, 0);
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698