summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/shadow/details-summary-distributed.html
blob: 8e4697b727506673b6e51be0df0916f576b025cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<p>Tests distributed &lt;summary> elements are not recognized as children of &lt;details> elements.
<p>Note in the current build, &lt;details> cannot show toggle buttons if &lt;summary> elements are distributed.
    The expected file simulates this behavior.
<div id=host>
    <summary id=summary>Distributed summary</summary>
</div>
<template id=template>
    <details>
        <content></content>
        <div>Details text</div>
    </details>
</template>
<script>
runTests();
function runTests() {
    var shadowRoot = host.createShadowRoot();
    shadowRoot.appendChild(document.importNode(template.content, true));
}
</script>