caption-side-inherited-001.xht (1195B)
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: Caption-side is inherited by default</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#propdef-caption-side" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#caption-position" /> 8 <meta name="assert" content="Caption-side is inherited by default." /> 9 <style type="text/css"> 10 #div1 11 { 12 caption-side: bottom; 13 } 14 table 15 { 16 background: blue; 17 } 18 td 19 { 20 height: 1in; 21 width: 2in; 22 } 23 </style> 24 </head> 25 <body> 26 <p>Test passes if the word "BELOW" is below the box.</p> 27 <div id="div1"> 28 <table> 29 <caption>BELOW</caption> 30 <tr> 31 <td></td> 32 </tr> 33 </table> 34 </div> 35 </body> 36 </html>