OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 | 4 |
5 <p>Fallback elements should be rendered if it's distributed</p> | 5 <p>Fallback elements for content insertion points should be rendered</p> |
6 | 6 |
7 <div id="host1"></div> | 7 <div id="host1"></div> |
8 | 8 |
9 <script> | 9 <script> |
10 var shadowRoot1 = host1.createShadowRoot(); | 10 var shadowRoot1 = host1.createShadowRoot(); |
11 shadowRoot1.innerHTML = | 11 shadowRoot1.innerHTML = |
12 '<div id="host2">' + | 12 '<div id="host2">' + |
13 '<content><div title="debugstop">content fallback element</div></content
>' + | 13 '<content><div title="debugstop">content fallback element</div></content
>' + |
14 '<shadow><div>shadow fallback element</div></shadow>' + | 14 '<shadow><div>shadow fallback element</div></shadow>' + |
15 '<div id="div">This should be selected.</div>' + | 15 '<div id="div">This should be selected.</div>' + |
16 '</div>'; | 16 '</div>'; |
17 | 17 |
18 var host2 = shadowRoot1.getElementById('host2'); | 18 var host2 = shadowRoot1.getElementById('host2'); |
19 var shadowRoot2 = host2.createShadowRoot(); | 19 var shadowRoot2 = host2.createShadowRoot(); |
20 shadowRoot2.innerHTML = '<content select="div"></content>'; | 20 shadowRoot2.innerHTML = '<content select="div"></content>'; |
21 </script> | 21 </script> |
22 | 22 |
23 </html> | 23 </html> |
24 | |
25 | |
OLD | NEW |