column-background-001

Column background property

WeasyPrint

This browser

Assertion
A background can be set on a table column.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 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="flags" content="">
 8         <meta name="assert" content="A background can be set on a table column.">
 9         <style type="text/css">
10             #table
11             {
12                 background: blue;
13                 display: table;
14             }
15             #col
16             {
17                 background: orange;
18                 display: table-column;
19             }
20             #row
21             {
22                 display: table-row;
23             }
24             #row div
25             {
26                 display: table-cell;
27                 height: 1in;
28                 width: 1in;
29             }
30         </style>
31     </head>
32     <body>
33         <p>Test passes if the blue box is to the right of the orange box.</p>
34         <div id="table">
35             <div id="col"></div>
36             <div id="row">
37                 <div></div>
38                 <div></div>
39             </div>
40         </div>
41     </body>
42 </html>