table-anonymous-block-017.xht (1465B)
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 'margin-left' 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 'margin-left' property of a table is actually applied to its anonymous block box." /> 8 <style type="text/css"> 9 div 10 { 11 border-left: 5px solid black; 12 height: 100px; 13 } 14 table 15 { 16 margin-left: 100px; 17 border-collapse: collapse; 18 } 19 caption 20 { 21 background: orange; 22 color: orange; 23 } 24 td 25 { 26 background: blue; 27 color: blue; 28 } 29 </style> 30 </head> 31 <body> 32 <p>Test passes if the blue box is directly beneath the orange box and neither box is touching the black line.</p> 33 <div> 34 <table> 35 <caption>Filler TextFiller Text</caption> 36 <tr> 37 <td>Filler TextFiller Text</td> 38 </tr> 39 </table> 40 </div> 41 </body> 42 </html>