OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>CSS Test: Vertical-align set to 'baseline' with a spanning cell</t
itle> | 4 <title>CSS Test: Vertical-align set to 'baseline' with a spanning cell</t
itle> |
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> | 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> |
6 <link rel="author" title="WebKit" href="http://www.webkit.org/"> | 6 <link rel="author" title="WebKit" href="http://www.webkit.org/"> |
7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#height-layo
ut"> | 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#height-layo
ut"> |
8 <meta name="flags" content=""> | 8 <meta name="flags" content=""> |
9 <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 l
ine of text or in-flow content) with the baseline of the first of the rows it sp
ans."> | 9 <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 l
ine of text or in-flow content) with the baseline of the first of the rows it sp
ans."> |
10 <style type="text/css"> | 10 <style type="text/css"> |
(...skipping 10 matching lines...) Expand all Loading... |
21 { | 21 { |
22 font-family: Ahem; | 22 font-family: Ahem; |
23 font-size: small; | 23 font-size: small; |
24 } | 24 } |
25 </style> | 25 </style> |
26 </head> | 26 </head> |
27 <body> | 27 <body> |
28 <!-- The row-spanning cell is the only one with a baseline. It should be base
line-aligned on the first row that it spans | 28 <!-- The row-spanning cell is the only one with a baseline. It should be base
line-aligned on the first row that it spans |
29 and as it is the same height as the other cells in the row, it sets the
baseline for the row. This is unaffected by | 29 and as it is the same height as the other cells in the row, it sets the
baseline for the row. This is unaffected by |
30 the total height of the rowspan (80px) --> | 30 the total height of the rowspan (80px) --> |
31 <p>Test passes if the bottom of first and last black boxes is aligned.</
p> | 31 <p>Test passes if the bottom of the black boxes is aligned.</p> |
32 <table> | 32 <table> |
33 <tr> | 33 <tr> |
34 <td> | 34 <td> |
35 <div id="small">Text</div> | 35 <div id="small">Text</div> |
36 </td> | 36 </td> |
37 <td id="spanning" rowspan="3" colspan="2"> | 37 <td id="spanning" rowspan="3" colspan="2"> |
38 <div id="small">Text</div> | 38 <div id="small">Text</div> |
39 </td> | 39 </td> |
40 <td> | 40 <td> |
41 <div id="small">Text</div> | 41 <div id="small">Text</div> |
42 </td> | 42 </td> |
43 </tr> | 43 </tr> |
44 <tr> | 44 <tr> |
45 <td></td> | 45 <td></td> |
46 <td></td> | 46 <td></td> |
47 </tr> | 47 </tr> |
48 <tr> | 48 <tr> |
49 <td></td> | 49 <td></td> |
50 <td></td> | 50 <td></td> |
51 </tr> | 51 </tr> |
52 </table> | 52 </table> |
53 </body> | 53 </body> |
54 </html> | 54 </html> |
OLD | NEW |