missing-cell-rendering-001

Rendering of missing table cells

WeasyPrint

This browser

Assertion
Missing table cells are rendered as if their grid position were occupied by an anonymous table-cell box.

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: Rendering of missing table cells</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#table-layers">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Missing table cells are rendered as if their grid position were occupied by an anonymous table-cell box.">
 9         <style type="text/css">
10             #table
11             {
12                 background: orange;
13                 color: orange;
14                 display: table;
15             }
16             .tr
17             {
18                 display: table-row;
19             }
20             .td
21             {
22                 background: black;
23                 border: 1px solid black;
24                 color: black;
25                 display: table-cell;
26             }
27         </style>
28     </head>
29     <body>
30         <p>Test passes if there is a two-by-two table below and the top-left and bottom-right corners are orange.</p>
31         <div id="table">
32             <div class="tr">
33                 XXXXX
34                 <div class="td">XXXXX</div>
35             </div>
36             <div class="tr">
37                 <div class="td">XXXXX</div>
38             </div>
39         </div>
40     </body>
41 </html>