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 <summary> elements are not recognized as children of <details> elements.
<p>Note in the current build, <details> cannot show toggle buttons if <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>
|