d548e0de339b0633ed71c9cfaf9c4f3c28726020
[WebKit-https.git] / LayoutTests / fast / dom / shadow / distribution-className-modified.html
1 <!DOCTYPE html>
2
3 <html>
4 <body>
5
6 <script src="resources/polyfill.js"></script>
7
8 <div id="host">
9     <div class="selected">A</div>
10     <div>B</div>
11     <div>C</div>
12     <div class="selected">D</div>
13     <div>E</div>
14     <div id="F">F</div>
15 </div>
16
17 <script>
18 if (window.testRunner)
19     testRunner.waitUntilDone();
20
21 var shadowRoot = new WebKitShadowRoot(host);
22 shadowRoot.innerHTML = '<content select=".selected"></content>';
23
24 setTimeout(function() {
25     F.className = 'selected';
26     if (window.testRunner)
27         testRunner.notifyDone();
28 }, 0);
29 </script>
30 </html>