fixed-table-layout-003-vrl.html (1670B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 2 <html> 3 <head> 4 <title>CSS Test: Cell in the first row with specified height sets the height for the column</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/"> 6 <link rel="author" title="Adapted for vertical layout by Simon Montagu" href="http:/mozilla.org/"> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#fixed-table-layout"> 8 <meta name="flags" content=""> 9 <meta name="assert" content="A cell in the first row with specified non-auto 'height' sets the height for its column in the absence of a column element with specified non-auto height."> 10 <style type="text/css"> 11 .test { writing-mode: vertical-rl; } 12 table 13 { 14 border-collapse: collapse; 15 table-layout: fixed; 16 height: 200px; 17 } 18 td 19 { 20 padding: 0; 21 } 22 #cell 23 { 24 background: blue; 25 height: 100px; 26 width: 24px; 27 color: blue; 28 } 29 #div1 30 { 31 background: black; 32 width: 24px; 33 height: 100px; 34 } 35 </style> 36 </head> 37 <body> 38 <p>Test passes if the boxes below are the same height.</p> 39 <div class="test"> 40 <table> 41 <tr> 42 <td id="cell">X</td> 43 <td></td> 44 </tr> 45 </table> 46 <div id="div1"></div> 47 </div> 48 </body> 49 </html>