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

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

Issue 1774113002: Move Shadow DOM V1 tests from fast/dom/shadow to shadow-dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <div id="host"> 2 <div id="host">
3 <div id="child">I should be green.</div> 3 <div id="child">I should be green.</div>
4 </div> 4 </div>
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 8
9 var shadowRoot = document.getElementById('host').attachShadow({mode: 'open'}); 9 var shadowRoot = document.getElementById('host').attachShadow({mode: 'open'});
10 shadowRoot.innerHTML = '<style>slot::slotted(.selected) { ' + 10 shadowRoot.innerHTML = '<style>slot::slotted(.selected) { ' +
11 'background: green; }</style>' + 11 'background: green; }</style>' +
12 '<slot></slot>'; 12 '<slot></slot>';
13 13
14 setTimeout(function() { 14 setTimeout(function() {
15 document.getElementById('child').classList.add('selected'); 15 document.getElementById('child').classList.add('selected');
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.notifyDone(); 17 testRunner.notifyDone();
18 }, 0); 18 }, 0);
19 </script> 19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698