summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/386310-1c-shadow.html
blob: 219827646429ef38aa9028b8baa05dd90489858e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
  <head>
    <script src="386310-script.js"></script>
    <script>
      customElements.define("custom-element", class extends HTMLElement {
        constructor() {
          super();
          const template = document.getElementById("template");
          const shadowRoot = this.attachShadow({mode: "open"})
            .appendChild(template.content.cloneNode(true));
        }
      });
    </script>
  </head>
  <body>
    <template id="template">
      <slot></slot>
      <span></span>
    </template>
    <custom-element id="test" style="display: block;">first second third [fourth]</custom-element>
  </body>
</html>