summaryrefslogtreecommitdiffstats
path: root/layout/generic/crashtests/946167-1.html
blob: bcdfdd0e5ddc5f96d3a26c74df5808d365937f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<body>
<script>
  // Create a bunch of nested flex containers:
  var parentNode = document.body;
  var depth = 50;
  for (var i = 0; i < depth; i++) {
    var childNode = document.createElement("div");
    childNode.style.display = "flex";
    parentNode.appendChild(childNode);
    parentNode = childNode;
  }

  // Add some text in the innermost child:
  childNode.innerHTML = "Text";

  // Force reflow:
  var height = document.body.children[0].offsetHeight;
</script>