empty-cells-applies-to-003

Empty-cells and 'display: list-item' elements

WeasyPrint

This browser

Assertion
Empty-cells does not apply to 'display: list-item' elements.

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: Empty-cells and 'display: list-item' elements</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#propdef-empty-cells">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#empty-cells">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="Empty-cells does not apply to 'display: list-item' elements.">
10         <style type="text/css">
11             body
12             {
13                 margin-left: 1em;
14             }
15             #table
16             {
17                 display: table;
18             }
19             .tr
20             {
21                 display: table-row;
22             }
23             .td
24             {
25                 color: white;
26                 display: table-cell;
27             }
28             #test
29             {
30                 background: black;
31                 border: 5px solid black;
32                 display: list-item;
33                 empty-cells: hide;
34                 height: 1em;
35                 width: 1em;
36             }
37         </style>
38     </head>
39     <body>
40         <p>Test passes if there is a box below and there is a marker bullet on the left-hand side of the box.</p>
41         <div id="table">
42             <div class="tr">
43                 <div id="test"></div>
44                 <div class="td">XXXXX</div>
45             </div>
46             <div class="tr">
47                 <div class="td">XXXXX</div>
48                 <div class="td">XXXXX</div>
49             </div>
50         </div>
51     </body>
52 </html>