column-background-001.xht (1273B)
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: Column background property</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#columns" /> 7 <meta name="assert" content="A background can be set on a table column." /> 8 <style type="text/css"> 9 #table 10 { 11 background: blue; 12 display: table; 13 } 14 #col 15 { 16 background: orange; 17 display: table-column; 18 } 19 #row 20 { 21 display: table-row; 22 } 23 #row div 24 { 25 display: table-cell; 26 height: 1in; 27 width: 1in; 28 } 29 </style> 30 </head> 31 <body> 32 <p>Test passes if the blue box is to the right of the orange box.</p> 33 <div id="table"> 34 <div id="col"></div> 35 <div id="row"> 36 <div></div> 37 <div></div> 38 </div> 39 </div> 40 </body> 41 </html>