caption-side-applies-to-014.xht (1557B)
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 and 'display: table-cell' elements</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 <link rel="match" href="caption-side-applies-to-008-ref.html" /> 9 <meta name="assert" content="Caption-side does not apply to 'display: table-cell' elements." /> 10 <style type="text/css"> 11 #table 12 { 13 background: blue; 14 display: table; 15 table-layout: fixed; 16 } 17 #caption 18 { 19 display: table-caption; 20 } 21 #row 22 { 23 display: table-row; 24 } 25 #cell 26 { 27 background: blue; 28 caption-side: bottom; 29 display: table-cell; 30 height: 1in; 31 width: 2in; 32 } 33 </style> 34 </head> 35 <body> 36 <p>Test passes if the "Filler Text" below is above the box.</p> 37 <div id="table"> 38 <div id="caption">Filler Text</div> 39 <div id="row"> 40 <div id="cell"></div> 41 </div> 42 </div> 43 </body> 44 </html>