table-visual-layout-008.xht (1502B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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="assert" content="Column boxes are placed consecutively by their order in the page source, from right to left when 'direction' is set to 'rtl'." /> 8 <style type="text/css"> 9 table 10 { 11 direction: rtl; 12 } 13 .blue1 14 { 15 background: aqua; 16 } 17 .blue2 18 { 19 background: blue; 20 } 21 .blue3 22 { 23 background: navy; 24 } 25 td 26 { 27 border: 1px solid black; 28 height: 2em; 29 width: 2em; 30 } 31 </style> 32 </head> 33 <body> 34 <p>Test passes if from left-to-right, each square is a lighter blue than the previous one.</p> 35 <table> 36 <col class="blue1" /> 37 <col class="blue2" /> 38 <col class="blue3" /> 39 <tr> 40 <td></td> 41 <td></td> 42 <td></td> 43 </tr> 44 </table> 45 </body> 46 </html>