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