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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/slotted-pseudo-element-dynamic-attribute-change.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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>::slotted pseudo elements with dynamic attribute change</title>
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