summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/1449243.html
blob: ad07f572a8549587fd5c80ec80ae92922625c769 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!doctype html>
<div id="host"></div>
<script>
  host.attachShadow({ mode: 'open' }).innerHTML = `
    <style>
      div { color: green }
    </style>
    <div></div>
  `;
  document.body.offsetTop;
  host.shadowRoot.styleSheets[0].insertRule("[foo] { color: green }", 0);
  host.shadowRoot.querySelector("div").setAttribute("foo", "bar");
</script>