summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/inline-table-first-row-non-empty-cell-non-auto-content.html
blob: 23d176f8dadbd78c6fb6472ec9fb144c2bb7bef0 (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>
<style>
body {
    margin: 0;
    padding: 0;
}
table {
    padding: 0;
    border: 0;
    border-spacing: 0;
    display: inline-table;
}
span {
   font: 50px Ahem;
   line-height: 80px;
}
td {
    border: 0px;
    padding: 10px;
    height: 20px;
    vertical-align: baseline;
}

#content {
    height: 5px;
}
</style>
<script src="../../resources/check-layout.js"></script>
<span data-total-y=15>
    Text
    <table data-total-y=40>
        <tr><td><div id="content"></div></td></tr>
    </table>
    Text
</span>
<p>crbug.com/452593: If an inline-table consists of a single row which consists of a cell whose styled height exceeds the styled
   height of its contents then the table should use the bottom of the table as its baseline. 
   </p>
   <p id="test-output"></p>
<script>
checkLayout('span', document.getElementById("test-output"));
checkLayout('table', document.getElementById("test-output"));
</script>