summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/resize-table-repaint-vertical-align-cell.html
blob: c27a5d2494ec8476c51a8e70a9c7365d20550975 (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
<!DOCTYPE html>
<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
<script>
function repaintTest() {
    document.getElementById('table').style.height = '80%';
}
onload = runRepaintTest;
</script>
<style>
body {
    margin: 0;
}
table {
    position: absolute;
    height: 100px;
}
td {
    vertical-align: middle;
    width: 100px;
}
</style>
<div style="height: 50px">
Tests repaint of middle-vertical-aligned table cells when table changes size.
The result repaint rects should cover the middle-vertical-aligned table cells.
</div>
<table id="table">
    <tr>
        <td>MIDDLE</td>
    </tr>
</table>