tor-browser

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

contiguous-floated-table-vrl-008.xht (2120B)


      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 horizontal padding. 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       background-color: green;
     25       border-collapse: separate;
     26       border-spacing: 0px;
     27       float: left;
     28       height: 100px;
     29       writing-mode: vertical-rl;
     30     }
     31 
     32   td
     33     {
     34       padding: 0px;
     35     }
     36 
     37   table#left-first
     38     {
     39       padding-right: 25px;
     40       margin-right: 25px;
     41     }
     42 
     43   table#right-second
     44     {
     45       padding-left: 25px;
     46       margin-left: 25px;
     47     }
     48 
     49   div#reference-overlapped
     50     {
     51       background-color: red;
     52       background-image: url("support/margin-collapse-2em-space-wm-vert.png");
     53       background-repeat: no-repeat;
     54       height: 100px;
     55       width: 100px;
     56     }
     57   ]]></style>
     58  </head>
     59 
     60  <body>
     61 
     62   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     63 
     64   <table id="left-first">
     65 
     66     <tr><td></td><td></td><td></td><td></td></tr>
     67 
     68   </table>
     69 
     70   <table id="right-second">
     71 
     72     <tr><td></td><td></td><td></td><td></td></tr>
     73 
     74   </table>
     75 
     76   <div id="reference-overlapped"></div>
     77 
     78  </body>
     79 </html>