summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/table-row-change-height-with-needsCellRecalc-section.html
blob: 33503ccbd06fd3a37b60314372ce79362e26c8a6 (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
<!DOCTYPE html>
<html>
<head>
<style>
    .fixedHeight { height: 100px; }
</style>
</head>
<body>
<table id="table">
<tr id="row">
<th>Bug 72004: Crash in styleDidChange when changing a table cell's height.<br></th>
<th>If this test does not crash, it has PASSED.</th>
</tr>
</table>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

var table = document.getElementById("table");
var row = document.createElement("tr");
table.appendChild(row);

</script>
<script>
// This sets the recalcCells bit on the section.
row.parentNode.removeChild(row);

// Change the remaining row's height.
document.getElementById("row").setAttribute("class", "fixedHeight");
</script>
</body>
</html>