inline-table-valign-001.xht (1436B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> 2 <title>CSS Test: Test for vertical alignment on inline-table</title> 3 <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> 4 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 5 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-display" /> 6 <meta name="assert" content="it is a rectangular block that participates in an inline formatting context)." /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" /> 8 <link rel="match" href="inline-table-valign-001-ref.xht"/> 9 <meta name="assert" content="The baseline of an 'inline-table' is the baseline of the first row of the table." /> 10 <style type="text/css"> 11 span#table { display: inline-table; } 12 span#rowgroup { display: table-row-group; } 13 span#row { display: table-row; } 14 span#cell { display: table-cell; } 15 span#table, span#rowgroup, span#row, span#cell { 16 border: 4px solid white; 17 margin: 3px 0; 18 border-width: 4px 0; 19 padding: 9px 0; 20 border-spacing: 0 5px; 21 } 22 span#block { display: block; visibility: hidden; } 23 </style> 24 </head> 25 <body> 26 <table border=""><tbody><tr><td> 27 <p>a<span id="table"><span id="rowgroup"><span id="row"><span id="cell">bcd<span id="block">x</span></span></span></span></span>e</p> 28 </td></tr></tbody></table> 29 30 31 </body></html>