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 visibility 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="Visibility can be set on a table column.">
9 <style type="text/css">
10 #table
11 {
12 display: table;
13 background: black;
14 }
15 .col, #col1
16 {
17 display: table-column;
18 }
19 #col1
20 {
21 visibility: collapse;
22 }
23 .tr
24 {
25 display: table-row;
26 }
27 .td1, .td2
28 {
29 display: table-cell;
30 }
31 .td2
32 {
33 background: red;
34 }
35 </style>
36 </head>
37 <body>
38 <p>Test passes if there is no red visible on the page.</p>
39 <div id="table">
40 <div class="col"></div>
41 <div id="col1"></div>
42 <div class="col"></div>
43 <div class="tr">
44 <div class="td1">Filler Text</div>
45 <div class="td2">This test failed.</div>
46 <div class="td1">Filler Text</div>
47 </div>
48 <div class="tr">
49 <div class="td1">Filler Text</div>
50 <div class="td2">This test failed.</div>
51 <div class="td1">Filler Text</div>
52 </div>
53 </div>
54 </body>
55 </html>