table-anonymous-block-018.xht (1490B)
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-right' 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-right' property of a table is actually applied to its anonymous block box." /> 8 <style type="text/css"> 9 table 10 { 11 border-spacing: 0; 12 display: inline-table; 13 margin-right: 50px; 14 } 15 caption, td 16 { 17 background: blue; 18 color: blue; 19 } 20 td 21 { 22 padding: 0; 23 } 24 div 25 { 26 background: orange; 27 display: inline-block; 28 height: 50px; 29 width: 50px; 30 } 31 </style> 32 </head> 33 <body> 34 <p>Test passes if there is a single blue box and orange square below, and the space between them is the same width as the orange square.</p> 35 <table> 36 <caption>XXXXXXXXX0</caption> 37 <tr> 38 <td>XXXXXXXXX0</td> 39 </tr> 40 </table> 41 <div></div> 42 </body> 43 </html>