summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/deprecated-flexbox/inline-children-crash.html
blob: 1c21a731b2a14ae54a5943fa615ff2c41bc6789b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html>
<head>
<style>
#flexbox {
  display: -moz-box;
  display: -khtml-box;
  display: box;
  width: 100px;
  height: 100px;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  -webkit-line-clamp: 50%;
}
</style>
<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
</head>
<body>
<p>Remove last block content from a flexbox, leaving only inline content. This should not crash</p>

<div id="flexbox"><div id=remove></div>text</div>
<script>
var flexbox = document.getElementById('flexbox');
flexbox.removeChild(flexbox.firstChild);
</script>
</body>