table-visual-layout-007

Column boxes are rendered by page source order

WeasyPrint

This browser

Assertion
Column boxes are placed consecutively by their order in the page source.

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 boxes are rendered by page source order</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="Column boxes are placed consecutively by their order in the page source.">
 9         <style type="text/css">
10             .blue1
11             {
12                 background: navy;
13             }
14             .blue2
15             {
16                 background: blue;
17             }
18             .blue3
19             {
20                 background: aqua;
21             }
22             td
23             {
24                 border: 1px solid black;
25                 height: 2em;
26                 width: 2em;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if from left-to-right, each square is a lighter blue than the previous one.</p>
32         <table>
33             <col class="blue1">
34             <col class="blue2">
35             <col class="blue3">
36             <tr>
37                 <td></td>
38                 <td></td>
39                 <td></td>
40             </tr>
41         </table>
42     </body>
43 </html>