cript">
  let root = host.attachShadow({mode:"open"});
  root.innerHTML = `<div dir="rtl"><slot dir="auto" name="x1"></slot></div>`;
  result.innerHTML += html_direction(root.querySelector("div[dir=rtl]").firstChild) + " / " + getComputedStyle(root.querySelector("div[dir=rtl]").firstChild).direction + " (on the " +  root.querySelector("div[dir=rtl]").firstChild.localName + ').';
</script>

</body>
</html>
