summaryrefslogtreecommitdiffstats
path: root/layout/reftests/webcomponents/reframe-shadow-child-2.html
blob: 0ebbe7433dcc761faa3ebf7e08ddd8f4259cf0fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!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>