mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-16 09:23:07 +09:00
* Implementation for assignedNodes * Include slots in the flat tree * Fix event get-the-parent algorithm for a node * Update and add reftests for Shadow DOM v1 * Update web platform tests expectations Tag #1375
15 lines
435 B
HTML
15 lines
435 B
HTML
<!doctype html>
|
|
<template id="tmpl">
|
|
<div style="display: block">
|
|
Some text
|
|
More text
|
|
</div>
|
|
</template>
|
|
<div id="host"></div>
|
|
<script>
|
|
let shadowRoot = document.getElementById("host").attachShadow({mode: 'open'});
|
|
let tmpl = document.getElementById("tmpl");
|
|
shadowRoot.appendChild(document.importNode(tmpl.content, true));
|
|
document.body.offsetTop;
|
|
shadowRoot.firstElementChild.style.display = "table";
|
|
</script>
|