summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/vertical-align-baseline-rowspan-008.htm
blob: bee46f8ce235496d082bc0bc61e36238fe2edd12 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
   <head>
       <title>CSS Test: Vertical-align set to 'baseline' with a spanning cell</title>
       <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
       <link rel="author" title="WebKit" href="http://www.webkit.org/">
       <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#height-layout">
       <meta name="flags" content="">
       <meta name="assert" content="A spanning cell with Vertical-align set to 'baseline' aligns the cell's content baseline (which is the bottom of the first line of text or in-flow content) with the baseline of the first of the rows it spans.">
        <style type="text/css">
            #first
            {
                vertical-align: baseline;
            }
            #spanning
            {
                vertical-align: baseline;
                height: 80px;
            }
            #small
            {
                font-family: Ahem;
                font-size: small;
            }
            #large
            {
                font-family: Ahem;
                font-size: large;
            }
        </style>
    </head>
    <body>
<!--    The "first" cell is baseline-aligned. The text in the rowspan should align with it. -->
        <p>Test passes if the bottom of the first two black boxes is aligned.</p>
        <table>
            <tr>
                <td id="first">
                    <div id="large">Text</div>
                </td>
                <td id="spanning" rowspan="2" colspan="2">
                    <div id="small">Text</div>
                </td>
                <td>
                    <div id="small">Text</div>
                </td>
            </tr>
            <tr>
                <td></td>
                <td></td>
            </tr>
        </table>
    </body>
</html>