1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Caption-side set to 'inherit'</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="flags" content="">
9 <meta name="assert" content="A caption can inherit its 'caption-side' behavior from its table parent.">
10 <style type="text/css">
11 table
12 {
13 background: black;
14 caption-side: bottom;
15 }
16 caption
17 {
18 caption-side: inherit;
19 }
20 </style>
21 </head>
22 <body>
23 <p>Test passes if the "Filler Text" appears below the box.</p>
24 <table>
25 <caption>Filler Text</caption>
26 <tr>
27 <td>XXXXX</td>
28 </tr>
29 </table>
30 </body>
31 </html>