table-header-group-005.xht (2260B)
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: Multiple table header groups</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#table-display" /> 7 <meta name="assert" content="A table containing multiple table-header-group elements only uses the first one as its header and treats the others as table row groups." /> 8 <style type="text/css"> 9 .table 10 { 11 display: table; 12 } 13 .thead 14 { 15 display: table-header-group; 16 } 17 .tbody 18 { 19 display: table-row-group; 20 } 21 .tr 22 { 23 display: table-row; 24 } 25 .td 26 { 27 border: 1px solid black; 28 color: blue; 29 display: table-cell; 30 font-size: 3em; 31 width: 1em; 32 } 33 </style> 34 </head> 35 <body> 36 <p>Test passes if from top-to-bottom, the boxes are labeled one through six.</p> 37 <div class="table"> 38 <div class="tbody"> 39 <div class="tr"> 40 <div class="td">2</div> 41 </div> 42 </div> 43 <div class="thead"> 44 <div class="tr"> 45 <div class="td">1</div> 46 </div> 47 </div> 48 <div class="thead"> 49 <div class="tr"> 50 <div class="td">3</div> 51 </div> 52 </div> 53 <div class="tbody"> 54 <div class="tr"> 55 <div class="td">4</div> 56 </div> 57 </div> 58 <div class="thead"> 59 <div class="tr"> 60 <div class="td">5</div> 61 </div> 62 </div> 63 <div class="tbody"> 64 <div class="tr"> 65 <div class="td">6</div> 66 </div> 67 </div> 68 </div> 69 </body> 70 </html>