summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/text-autosizing/table-subtree-layout-crash.html
blob: f7fc097ce576cc3927c6fb2f336f74edfb8fb2d1 (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
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<style>

table {
  height: 10px;
  width: 10px;
  overflow: hidden;
}

</style>
<script src="resources/autosizingTest.js"></script>
</head>
<body>
Test for crbug.com/375439: this test passes if it does not crash.<br>

<table>
  <tr>
    <td>
      <div id="div">hello</div>
    </td>
  </tr>
</table>

<script>
if (window.testRunner)
    testRunner.waitUntilDone();

window.requestAnimationFrame(function () {
    var node = document.getElementById('div');
    node.parentNode.removeChild(node);
    var forceLayout = document.body.offsetTop;

    if (window.testRunner) {
        testRunner.dumpAsText();
        testRunner.notifyDone();
    }
});

</script>
</body>
</html>