summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-scoping/chrome-1492368-crash.html
blob: 04d48ef21532405548b80e23c482e848b3fc1ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<title>Chrome crash re-assigning to slots with display:none slot</title>
<link rel="help" href="https://crbug.com/1492368">
<div id="host">
  <span id="slotted" style="display:none"></span>
</div>
<script>
  let root = host.attachShadow({mode:"open"});
  root.innerHTML = `
    <slot></slot>
    <slot name="s1" style="display:none"></slot>
  `;
  host.offsetTop;
  slotted.setAttribute("slot", "s1");
  slotted.style.color = "green";
  host.offsetTop;
</script>