summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/multicol/table-vertical-align-expected.html
blob: c912adabebf457eccf14eaad24790cfa47197314 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<style>
    .mc { width:520px; height:80px; font-size:12px; line-height:20px; background:#ddd; }
    .mc span { font-size:2em; line-height:30px; }
</style>

<p>The big text should be in the first column, and baseline-aligned with the line in its neighbor cell on the left:</p>
<div class="mc">
    <div style="float:left; padding-left:10px; padding-top:10px; width:270px;">
        <div style="display:inline-block; width:30px;">
            line<br>
            <!-- The baseline of an inline-block is the baseline of the last in-flow line. So make
                 sure the first line is also the last in-flow line :-P -->
            <div style="position:absolute;">
                line<br>
                line
            </div>
        </div><span style="margin-left:15px;">1st column</span>
    </div>
    <div style="float:left;">
        line<br>
        line<br>
        line<br>
    </div>
</div>

<hr>

<p>The big text should be near the top in the first column:</p>
<div class="mc">
    <div style="float:left; padding-left:10px; padding-top:10px; width:270px;">
        <div style="float:left; width:30px;">line<br>line<br>line</div>
        <span style="margin-left:15px;">1st column</span>
    </div>
    <div style="float:left;">
        line<br>
        line<br>
        line<br>
    </div>
</div>

<hr>

<p>The big text should be at the top in the second column:</p>
<div class="mc">
    <div style="float:left; padding-left:10px; padding-top:10px; width:270px;">
        line<br>
        line<br>
        line<br>
    </div>
    <div style="float:left; width:220px;">
        <div style="float:left; width:30px;">line<br>line<br>line</div>
        <span style="margin-left:15px;">2nd column</span>
    </div>
</div>

<hr>

<p>The big text should be near the bottom in the second column:</p>
<div class="mc">
    <div style="float:left; padding-left:10px; padding-top:10px; width:270px;">
        line<br>
        line<br>
        line<br>
    </div>
    <div style="float:left; width:200px;">
        <div style="float:left; width:30px;">line<br>line<br>line</div>
        <div style="height:35px;"></div>
        <span style="margin-left:15px;">2nd column</span>
    </div>
</div>