blob: 8b0c6c4366a13c5ba98686deba4cd35800c7ba44 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div id="host1">
<div class="selected">A</div>
<div>B</div>
<div>C</div>
<div class="selected">D</div>
<div>E</div>
<div id="F">F</div>
</div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
var shadowRoot1 = host1.createShadowRoot();
shadowRoot1.innerHTML = '<div id="host2"><shadow></shadow></div>';
var host2 = shadowRoot1.getElementById('host2');
var shadowRoot2 = host2.createShadowRoot();
shadowRoot2.innerHTML = '<content select=".selected"></content>';
setTimeout(function() {
F.className = 'selected';
if (window.testRunner)
testRunner.notifyDone();
}, 0);
</script>
</html>