table-anonymous-block-006.xht (1493B)
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: The anonymous block box around a table and the table 'float' property</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#model" /> 7 <meta name="assert" content="The 'float' property of a table is actually applied to its anonymous block box." /> 8 <style type="text/css"> 9 div 10 { 11 border: solid black; 12 height: 125px; 13 width: 200px; 14 } 15 table 16 { 17 float: right; 18 border-spacing: 0; 19 } 20 caption 21 { 22 background: orange; 23 color: orange; 24 } 25 td 26 { 27 background: blue; 28 color: blue; 29 } 30 </style> 31 </head> 32 <body> 33 <p>Test passes if the orange box is directly on top of the blue box and they are both positioned in the upper-right corner of the black box.</p> 34 <div> 35 <table> 36 <caption>Filler Text Filler Text</caption> 37 <tr> 38 <td>Filler Text Filler Text</td> 39 </tr> 40 </table> 41 </div> 42 </body> 43 </html>