empty-cells-applies-to-006.xht (1564B)
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: Empty-cells and 'display: table' 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-empty-cells" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#empty-cells" /> 8 <meta name="assert" content="Empty-cells does not apply to 'display: table' elements." /> 9 <style type="text/css"> 10 #table 11 { 12 display: table; 13 } 14 .tr 15 { 16 display: table-row; 17 } 18 .td 19 { 20 color: white; 21 display: table-cell; 22 } 23 #test 24 { 25 background: black; 26 border: 5px solid black; 27 display: table; 28 empty-cells: hide; 29 height: 1em; 30 width: 1em; 31 } 32 </style> 33 </head> 34 <body> 35 <p>Test passes if there is a box below.</p> 36 <div id="table"> 37 <div class="tr"> 38 <div id="test"></div> 39 <div class="td">XXXXX</div> 40 </div> 41 <div class="tr"> 42 <div class="td">XXXXX</div> 43 <div class="td">XXXXX</div> 44 </div> 45 </div> 46 </body> 47 </html>