summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/inline-table-in-inline-block-last-baseline-align.html
blob: 2e9d040e6255e8d200a75f4dc0c90ec911654ae0 (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
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/ahem.js"></script>
<style>
.wrapper {
    height: 100px;
    display: inline-block;
    font: 16px Ahem;
}

table {
    display: inline-table;
    border-spacing: 0px;
}

td {
    padding: 0px;
    vertical-align: middle;
    color: blue;
}
</style>
</head>
<body>
    <p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=91137">91137</a>: REGRESSION(r117339): cell in block-level table in inline-block are aligned with their last line box</p>
    <p>This test checks that an 'inline-table' contributes its baseline to determine an inline-block baseline.</p>
    <p>The 2 blue texts should be aligned below.</p>
    <div class="wrapper">
        <table>
            <td>First</td>
        </table>
    </div>
    <div class="wrapper">
        <table>
            <td>&nbsp;<br>&nbsp;<br>Second</td>
        </table>
    </div>
</body>
</html>