separated-border-model-006.xht (1781B)
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: Row and column backgrounds in the separated borders model</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#separated-borders" /> 7 <meta name="assert" content="Table row, column, row group and column group backgrounds are invisible in the space between borders." /> 8 <style type="text/css"> 9 table 10 { 11 border-collapse: separate; 12 border-spacing: 25px; 13 background: blue; 14 } 15 colgroup 16 { 17 background-color: orange; 18 } 19 col 20 { 21 background-color: orange; 22 } 23 tbody 24 { 25 background-color: black; 26 } 27 tr 28 { 29 background-color: black; 30 } 31 </style> 32 </head> 33 <body> 34 <p>Test passes if all four black boxes below are surrounded on all sides by blue.</p> 35 <table> 36 <colgroup> 37 <col /> 38 <col /> 39 </colgroup> 40 <colgroup> 41 <col /> 42 <col /> 43 </colgroup> 44 <tbody> 45 <tr> 46 <td>X</td> 47 <td>X</td> 48 </tr> 49 </tbody> 50 <tbody> 51 <tr> 52 <td>X</td> 53 <td>X</td> 54 </tr> 55 </tbody> 56 </table> 57 </body> 58 </html>