tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

table-progression-vrl-002.html (2436B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Test: vertical-rl Table Column/Colgroup Ordering</title>
      4 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
      5 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2016-01-15 -->
      6 <link rel="match" href="table-progression-002-ref.html">
      7 <meta name="assert" content="This test checks that vertical-rl tables order columns top-to-bottom (LTR) or bottom-to-top (RTL) per the table's 'direction'. This test also checks that 'writing-mode' and 'direction' do not apply to table columns and column groups.">
      8 <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">
      9 <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#direction" title="2.1 Specifying Directionality: the 'direction' property">
     10 
     11 <style>
     12  .test {
     13    writing-mode: vertical-rl;
     14  }
     15  [dir=rtl] {
     16    direction: rtl;
     17  }
     18 
     19  table {
     20    border-spacing: 0;
     21    border: solid gray;
     22    margin: 1em;
     23    float: left;
     24  }
     25  td {
     26    width: 1em;
     27    height: 1em;
     28  }
     29 
     30  .navy { background: navy}
     31  .blue { background: blue }
     32  .aqua { background: aqua }
     33  .teal { background: teal }
     34 
     35  /* These declarations must have no effect. */
     36  .test col,
     37  .test colgroup {
     38    writing-mode: horizontal-tb;
     39    writing-mode: vertical-lr;
     40    direction: rtl;
     41  }
     42  .test[dir=rtl] col,
     43  .test[dir=rtl] colgroup {
     44    writing-mode: horizontal-tb;
     45    direction: ltr;
     46  }
     47 </style>
     48 
     49 <p>Test passes if the following patterned boxes all look identical.
     50 
     51 <table class="test">
     52  <col span=2 class="navy">
     53  <col class="blue">
     54  <col span=2 class="aqua">
     55  <tr><td><td><td><td><td>
     56 </table>
     57 <table class="test">
     58  <colgroup span=2 class="navy"></colgroup>
     59  <colgroup>
     60    <col class="blue">
     61    <col span=2 class="aqua">
     62  </colgroup>
     63  <tr><td><td><td><td><td>
     64 </table>
     65 
     66 <table dir=rtl class="test">
     67  <col span=2 class="aqua">
     68  <col class="blue">
     69  <col span=2 class="navy">
     70  <tr><td><td><td><td><td>
     71 </table>
     72 <table dir=rtl class="test">
     73  <colgroup span=2 class="aqua"></colgroup>
     74  <colgroup>
     75    <col class="blue">
     76    <col span=2 class="navy">
     77  </colgroup>
     78  <tr><td><td><td><td><td>
     79 </table>
     80 
     81 <table class="reference">
     82  <tr><td class="navy">
     83  <tr><td class="navy">
     84  <tr><td class="blue">
     85  <tr><td class="aqua">
     86  <tr><td class="aqua">
     87 </table>