summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/1445682.html
blob: b79fd1d89bf71439742af5034c02cc8147c85397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script>
  function go() {
    let host = document.createElement('div');
    let style_1 = document.createElement('style');
    let style_2 = document.createElement('style');
    let otherElement = document.createElement('div');
    let shadowRoot = host.attachShadow({mode: "open"});
    style_1.title = 'x';
    style_2.title = 'y';
    document.head.appendChild(style_1);
    shadowRoot.appendChild(style_2);
    document.documentElement.appendChild(otherElement);
    otherElement.before('', host, '');
  }
  window.addEventListener('load', go)
</script>