tor-browser

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

contiguous-floated-table-vrl-006.xht (2100B)


      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   <!--
      8   Test inspired by
      9   http://test.csswg.org/source/css-writing-modes-3/table-progression-vrl-004.html
     10   -->
     11 
     12   <title>CSS Writing Modes Test: vertical-rl - contiguous floated tables and horizontal margins</title>
     13 
     14   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     15   <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
     16   <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
     17 
     18   <meta content="image" name="flags" />
     19   <meta content="This test checks that horizontal margins existing between contiguous floated tables with writing-mode set to 'vertical-rl' are not subtracted by the amount of their borders. In this test, there should be an horizontal gap of 50px separating both tables. Margins between 2 floated boxes do not collapse." name="assert" />
     20 
     21   <style type="text/css"><![CDATA[
     22   table
     23     {
     24       border-collapse: separate;
     25       border-spacing: 0px;
     26       float: left;
     27       height: 100px;
     28       writing-mode: vertical-rl;
     29     }
     30 
     31   td
     32     {
     33       padding: 0px;
     34     }
     35 
     36   table#left-first
     37     {
     38       border-right: green solid 25px;
     39       margin-right: 25px;
     40     }
     41 
     42   table#right-second
     43     {
     44       border-left: green solid 25px;
     45       margin-left: 25px;
     46     }
     47 
     48   div#reference-overlapped
     49     {
     50       background-color: red;
     51       background-image: url("support/margin-collapse-2em-space-wm-vert.png");
     52       background-repeat: no-repeat;
     53       height: 100px;
     54       width: 100px;
     55     }
     56   ]]></style>
     57  </head>
     58 
     59  <body>
     60 
     61   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     62 
     63   <table id="left-first">
     64 
     65     <tr><td></td><td></td><td></td><td></td></tr>
     66 
     67   </table>
     68 
     69   <table id="right-second">
     70 
     71     <tr><td></td><td></td><td></td><td></td></tr>
     72 
     73   </table>
     74 
     75   <div id="reference-overlapped"></div>
     76 
     77  </body>
     78 </html>