summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-item-before-anonymous-child-crash.html
blob: 7d77de9f305419c654ae1b553f3a11105cc869df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<body>
  <p>This test checks that adding a new grid item before an already existing item wrapped by an anonymous block does not crash under ASAN.</p>
  <div id=grid style="display: grid; grid-auto-flow: stack;">X</div>
</body>
<script type="text/javascript">
 if (window.testRunner)
   testRunner.dumpAsText();

 document.addEventListener("DOMContentLoaded", crash, false);

 function crash() {
   document.designMode = 'on';
   window.getSelection().selectAllChildren(grid);
   document.execCommand("Italic", null);
 }
</script>