Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<div id="moved"></div><div id="target"></div>
<script>
target.offsetTop;
target.attachShadow({mode:"open"});
target.moveBefore(moved, null);
moved.style.color = "red";
target.offsetTop;
</script>