Changing id, className, or attribute should invalidate distribution
[WebKit-https.git] / LayoutTests / fast / dom / shadow / reprojection-attribute-modified.html
1 <!DOCTYPE html>
2
3 <html>
4 <body>
5
6 <script src="resources/polyfill.js"></script>
7
8 <div id="host1">
9     <div>A</div>
10     <div>B</div>
11     <div>C</div>
12     <div>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 shadowRoot1 = new WebKitShadowRoot(host1);
22 shadowRoot1.innerHTML = '<div id="host2"><shadow></shadow></div>';
23
24 var host2 = shadowRoot1.getElementById('host2');
25 var shadowRoot2 = new WebKitShadowRoot(host2);
26 shadowRoot2.innerHTML = '<content select="div[title=selected]"></content>';
27
28 setTimeout(function() {
29     F.title = 'selected';
30     if (window.testRunner)
31         testRunner.notifyDone();
32 }, 0);
33 </script>
34 </html>