table-visual-layout-008

Column boxes are rendered by source order ('rtl' table scenario)

WeasyPrint

This browser

Assertion
Column boxes are placed consecutively by their order in the page source, from right to left when 'direction' is set to 'rtl'.

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