tor-browser

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

s72-border-spacing-005.xht (4918B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Writing Modes Test: border-spacing - second value is specified and non-zero in 'vertical-lr' table</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#dimension-mapping" title="7.2 Dimension Mapping" />
     11   <link rel="help" href="http://www.w3.org/TR/2011/REC-CSS2-20110607/tables.html#separated-borders" title="17.6.1 The separated borders model" />
     12   <link rel="match" href="s72-border-spacing-002-ref.xht" />
     13 
     14   <meta content="ahem" name="flags" />
     15   <meta content="This test checks that second value of 'border-spacing' represents, from left to right, a) spacing between logical table top padding (physical table left padding) and topmost cells and b) inter-row spacing and c) spacing between bottommost cells and logical table bottom padding (physical table right padding)." name="assert" />
     16 
     17   <link type="text/css" rel="stylesheet" href="support/ahem.css" />
     18 
     19   <style type="text/css"><![CDATA[
     20   table
     21     {
     22       border-spacing: 0em 0.5em; /* computes to logical vertical border-spacing: 10px */
     23       font: 1.25em/1 Ahem; /* computes to 20px/20px */
     24       padding: 0em 1.25em; /* computes to padding-left: 25px and padding-right: 25px */
     25       -ah-writing-mode: vertical-lr;
     26       -webkit-writing-mode: vertical-lr;
     27       writing-mode: tb-lr; /* IE11 */
     28       writing-mode: vertical-lr;
     29     }
     30 
     31   td
     32     {
     33       height: 1em;
     34       padding: 0em;
     35       width: 0.5em;
     36     }
     37 
     38   /*
     39 
     40   0px             25px     35px     45px     55px     65px     75px            100px
     41   | padding-left   |  left  |  2nd   | middle |  1st   |  right | padding-right|
     42   |   of table     |  vert. |  row   |  vert. |  right |  vert. |   of table   |
     43   |                | border |        | border |  most  | border |              |
     44   |                | spacing|        | spacing|  row   | spacing|              |
     45 20|                |        |        |        |        |        |              |
     46 px|                |        |        |        |        |        |              |
     47   |                |        |        |        |        |        |              |
     48   |                |        |        |        |        |        |              |
     49   |                |        |        |        |        |        |              |
     50 40|                |        |        |        |        |        |              |
     51 px|                |        |        |        |        |        |              |
     52   |                |        |        |        |        |        |              |
     53   |                |        |        |        |        |        |              |
     54   |                |        |        |        |        |        |              |
     55 60|                |        |        |        |        |        |              |
     56 px|                |        |        |        |        |        |              |
     57   |                |        |        |        |        |        |              |
     58   |                |        |        |        |        |        |              |
     59   |                |        |        |        |        |        |              |
     60 80|                |        |        |        |        |        |              |
     61 px|                |        |        |        |        |        |              |
     62   |                |        |        |        |        |        |              |
     63   |                |        |        |        |        |        |              |
     64   |                |        |        |        |        |        |              |
     65 00|                |        |        |        |        |        |              |
     66 px|                |        |        |        |        |        |              |
     67 
     68   */
     69 
     70   div#reference-overlapping-green
     71     {
     72       background-color: green;
     73       height: 6.25em;
     74       position: absolute;
     75       width: 6.25em;
     76     }
     77 
     78   div#reference-overlapped-red
     79     {
     80       background-color: red;
     81       height: 6.25em;
     82       position: absolute;
     83       width: 6.25em;
     84       z-index: -1;
     85     }
     86 
     87   table#test-overlapped-red
     88     {
     89       background-color: red;
     90     }
     91 
     92   table#test-overlapping-green
     93     {
     94       background-color: green;
     95     }
     96   ]]></style>
     97  </head>
     98 
     99  <body>
    100 
    101   <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p>
    102 
    103   <div id="reference-overlapping-green"></div>
    104 
    105   <table id="test-overlapped-red">
    106 
    107     <tr><td></td><td></td><td></td><td></td><td></td></tr>
    108 
    109     <tr><td></td><td></td><td></td><td></td><td></td></tr>
    110 
    111   </table>
    112 
    113   <div id="reference-overlapped-red"></div>
    114 
    115   <table id="test-overlapping-green">
    116 
    117     <tr><td></td><td></td><td></td><td></td><td></td></tr>
    118 
    119     <tr><td></td><td></td><td></td><td></td><td></td></tr>
    120 
    121   </table>
    122 
    123  </body>
    124 </html>