summaryrefslogtreecommitdiffstats
path: root/layout/base/crashtests/1439016.html
blob: 5469f798873683d393f9dbd5e5ba3108b671b043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<div id="host">
  <div slot="slot1">content</div>
</div>
<script>
// NOTE(emilio): the failure mode for this crashtest is asserting whenever the
// shell goes away.
let shadowRoot = document.querySelector('#host').attachShadow({ mode: 'open' });
shadowRoot.innerHTML = `
  <div id="slot1-container">
    <slot id="slot1" name="slot1"></slot>
    <button id="button1">Click here</button>
  </div>
`;

document.body.offsetTop;
shadowRoot.querySelector('#slot1-container').remove();
</script>