[css-grid] Import additional grid layout tests and update TestExpectations
[WebKit-https.git] / LayoutTests / fast / css-grid-layout / grid-crash-remove-positioned-item.html
1 <!DOCTYPE html>
2 <script>
3   if (window.testRunner)
4     testRunner.dumpAsText();
5 </script>
6 <p>crbug.com/700383 - [css-grid] Grid layouts go mostly blank</p>
7 <p>This test has PASSED if it does not CRASH on debug.</p>
8 <div id="grid" style="display: grid;">
9   <!-- This grid item with some text is needed,
10        otherwise LayoutGrid::paintChildren() won't be called
11        after removing the positioned item. -->
12   <div>item</div>
13 </div>
14 <script>
15   var abspositem = document.createElement("div");
16   abspositem.style.position = "absolute";
17   var grid = document.getElementById("grid");
18   grid.appendChild(abspositem);
19   document.body.offsetLeft;
20   grid.removeChild(abspositem);
21 </script>