Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>Nested slot reattach should not crash</title>
<div id="host">
<div>
<div id="inner"></div>
</div>
</div>
<script>
const root = host.attachShadow({mode: "open"});
root.innerHTML = "<slot></slot>";
host.offsetTop;
host.style.display = "inline";
inner.style.display = "inline";
host.offsetTop;
</script>