bidi-table-001

direction: rtl on table

WeasyPrint

This browser

Assertion
direction:rtl on table should reverse order of table cells

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: direction: rtl on table</title>
 5     <link rel="author" title="Eira Monstad, Opera Software ASA" href="mailto:public-testsuites@opera.com">
 6     <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-layout">
 7     <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#direction">
 8     <meta name="flags" content="">
 9     <meta name="assert" content="direction:rtl on table should reverse order of table cells">
10     <style type="text/css">
11       table {border-spacing: 0; margin-bottom: 1em;}
12       table.test {direction:rtl;}
13       td.a {background-color: navy; color: navy;}
14       td.b {background-color: magenta; color: magenta;}
15       td.c {background-color: cyan; color: cyan;}
16     </style>
17   </head>
18   <body>
19 
20     <p>You should see two identical colored bands below:</p>
21 
22     <table class="test">
23       <tr>
24 	<td class="a">xxxxxx</td>
25 	<td class="b">xxxxxx</td>
26 	<td class="c">xxxxxx</td>
27       </tr>
28     </table>
29 
30     <table>
31       <tr>
32 	<td class="c">xxxxxx</td>
33 	<td class="b">xxxxxx</td>
34 	<td class="a">xxxxxx</td>
35       </tr>
36     </table>
37   </body>
38 </html>