tor-browser

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

border-spacing-vlr-005.xht (4798B)


      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="border-spacing-vrl-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 rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     18   <style type="text/css"><![CDATA[
     19   table
     20     {
     21       border-spacing: 0em 0.5em; /* computes to logical vertical border-spacing: 10px */
     22       font: 20px/1 Ahem; /* computes to 20px/20px */
     23       padding: 0em 1.25em; /* computes to padding-left: 25px and padding-right: 25px */
     24       writing-mode: vertical-lr;
     25     }
     26 
     27   td
     28     {
     29       height: 1em;
     30       padding: 0em;
     31       width: 0.5em;
     32     }
     33 
     34   /*
     35 
     36   0px             25px     35px     45px     55px     65px     75px            100px
     37   | padding-left   |  left  |  2nd   | middle |  1st   |  right | padding-right|
     38   |   of table     |  vert. |  row   |  vert. |  right |  vert. |   of table   |
     39   |                | border |        | border |  most  | border |              |
     40   |                | spacing|        | spacing|  row   | spacing|              |
     41 20|                |        |        |        |        |        |              |
     42 px|                |        |        |        |        |        |              |
     43   |                |        |        |        |        |        |              |
     44   |                |        |        |        |        |        |              |
     45   |                |        |        |        |        |        |              |
     46 40|                |        |        |        |        |        |              |
     47 px|                |        |        |        |        |        |              |
     48   |                |        |        |        |        |        |              |
     49   |                |        |        |        |        |        |              |
     50   |                |        |        |        |        |        |              |
     51 60|                |        |        |        |        |        |              |
     52 px|                |        |        |        |        |        |              |
     53   |                |        |        |        |        |        |              |
     54   |                |        |        |        |        |        |              |
     55   |                |        |        |        |        |        |              |
     56 80|                |        |        |        |        |        |              |
     57 px|                |        |        |        |        |        |              |
     58   |                |        |        |        |        |        |              |
     59   |                |        |        |        |        |        |              |
     60   |                |        |        |        |        |        |              |
     61 00|                |        |        |        |        |        |              |
     62 px|                |        |        |        |        |        |              |
     63 
     64   */
     65 
     66   div#reference-overlapping-green
     67     {
     68       background-color: green;
     69       height: 6.25em;
     70       position: absolute;
     71       width: 6.25em;
     72     }
     73 
     74   div#reference-overlapped-red
     75     {
     76       background-color: red;
     77       height: 6.25em;
     78       position: absolute;
     79       width: 6.25em;
     80       z-index: -1;
     81     }
     82 
     83   table#test-overlapped-red
     84     {
     85       background-color: red;
     86     }
     87 
     88   table#test-overlapping-green
     89     {
     90       background-color: green;
     91     }
     92   ]]></style>
     93  </head>
     94 
     95  <body>
     96 
     97   <p>Test passes if there is a filled green rectangle and <strong>no red</strong>.</p>
     98 
     99   <div id="reference-overlapping-green"></div>
    100 
    101   <table id="test-overlapped-red">
    102 
    103     <tr><td></td><td></td><td></td><td></td><td></td></tr>
    104 
    105     <tr><td></td><td></td><td></td><td></td><td></td></tr>
    106 
    107   </table>
    108 
    109   <div id="reference-overlapped-red"></div>
    110 
    111   <table id="test-overlapping-green">
    112 
    113     <tr><td></td><td></td><td></td><td></td><td></td></tr>
    114 
    115     <tr><td></td><td></td><td></td><td></td><td></td></tr>
    116 
    117   </table>
    118 
    119  </body>
    120 </html>