table-visual-layout-023

Positioning table cells can cause them not to be table cells anymore

WeasyPrint

This browser

Assertion
Positioning table cells can cause them not to be table cells anymore.

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: Positioning table cells can cause them not to be table cells anymore</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-layout">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Positioning table cells can cause them not to be table cells anymore.">
 9         <style type="text/css">
10             table
11             {
12                 background: blue;
13             }
14             td
15             {
16                 background: black;
17                 height: 2em;
18                 width: 2em;
19             }
20             #positioned
21             {
22                 left: 200px;
23                 position: absolute;
24             }
25         </style>
26     </head>
27     <body>
28         <p>Test passes if the middle square of the table below is blue, and there is a single black square to the right of the table.</p>
29         <table>
30            <tr>
31                 <td></td>
32                 <td></td>
33                 <td></td>
34            </tr>
35            <tr>
36                 <td></td>
37                 <td id="positioned"></td>
38                 <td></td>
39            </tr>
40            <tr>
41                 <td></td>
42                 <td></td>
43                 <td></td>
44            </tr>
45         </table>
46     </body>
47 </html>