fixed-table-layout-011.xht (1434B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Table with table-layout fixed, width auto (inline-level)</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#fixed-table-layout" /> 7 <meta name="flags" content="may" /> 8 <meta name="assert" content="A table with fixed table-layout and auto width may be sized according to the auto table layout algorithm." /> 9 <style type="text/css"> 10 table 11 { 12 table-layout: fixed; 13 width: auto; 14 } 15 col 16 { 17 width: 100px; 18 } 19 td 20 { 21 color: white; 22 } 23 #secondrow 24 { 25 border: 2px solid black; 26 color: black; 27 } 28 </style> 29 </head> 30 <body> 31 <p>Test passes if the box below fully contains the text "FillerTextFillerText" or the text overflows the box.</p> 32 <table> 33 <col /> 34 <tr> 35 <td>FillerText</td> 36 </tr> 37 <tr> 38 <td id="secondrow">FillerTextFillerText</td> 39 </tr> 40 </table> 41 </body> 42 </html>