table-progression-vrl-004.html (2115B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Test: vertical-rl upright orientation Table Column/Colgroup Ordering</title> 4 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact"> 5 <link rel="match" href="table-progression-002-ref.html"> 6 <meta name="assert" content="This test checks that vertical-rl tables, whether LTR or RTL, order columns top-to-bottom when text-orientation is upright."> 7 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the 'writing-mode' property"> 8 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#direction" title="2.1 Specifying Directionality: the 'direction' property"> 9 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation" title="5.1 Orienting Text: the 'text-orientation' property"> 10 11 <style> 12 .test { 13 writing-mode: vertical-rl; 14 text-orientation: upright; 15 } 16 [dir=rtl] { 17 direction: rtl; 18 } 19 20 table { 21 border-spacing: 0; 22 border: solid gray; 23 margin: 1em; 24 float: left; 25 } 26 td { 27 width: 1em; 28 height: 1em; 29 } 30 31 .navy { background: navy} 32 .blue { background: blue } 33 .aqua { background: aqua } 34 .teal { background: teal } 35 </style> 36 37 <p>Test passes if the following patterned boxes all look identical. 38 39 <table class="test"> 40 <col span=2 class="navy"> 41 <col class="blue"> 42 <col span=2 class="aqua"> 43 <tr><td><td><td><td><td> 44 </table> 45 <table class="test"> 46 <colgroup span=2 class="navy"></colgroup> 47 <colgroup> 48 <col class="blue"> 49 <col span=2 class="aqua"> 50 </colgroup> 51 <tr><td><td><td><td><td> 52 </table> 53 54 <table dir=rtl class="test"> 55 <col span=2 class="navy"> 56 <col class="blue"> 57 <col span=2 class="aqua"> 58 <tr><td><td><td><td><td> 59 </table> 60 <table dir=rtl class="test"> 61 <colgroup span=2 class="navy"></colgroup> 62 <colgroup> 63 <col class="blue"> 64 <col span=2 class="aqua"> 65 </colgroup> 66 <tr><td><td><td><td><td> 67 </table> 68 69 <table class="reference"> 70 <tr><td class="navy"> 71 <tr><td class="navy"> 72 <tr><td class="blue"> 73 <tr><td class="aqua"> 74 <tr><td class="aqua"> 75 </table>