tor-browser

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

multicol-margin-001.xht (2016B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3  <head>
      4   <title>CSS Multi-column Layout Test: multi-column and margin collapsing of first child (basic)</title>
      5   <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
      6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-10 -->
      7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" />
      8   <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
      9   <meta name="flags" content="ahem" />
     10   <meta name="assert" content="This test checks that the margin-top of the first child of a multi-column element (with column-fill: auto) does not collapse with its parent." />
     11   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12   <style type="text/css"><![CDATA[
     13   div#test-multi-column-red
     14   {
     15   background-color: red;
     16   color: white;
     17   font: 3.125em/1 Ahem; /* equivalent to 50px/50px Ahem */
     18   height: 4em;
     19   margin-top: 0em;
     20   width: 4em;
     21 
     22   column-count: 2;
     23   column-fill: auto;
     24   column-gap: 0em;
     25   }
     26 
     27   div#first-child {margin-top: 2em;}
     28 
     29   div#reference-overlapping-green
     30   {
     31   background-color: green;
     32   bottom: 200px;
     33   height: 100px;
     34   position: relative;
     35   width: 100px;
     36   }
     37   ]]></style>
     38 
     39  </head>
     40 
     41  <body>
     42 
     43   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     44 
     45   <div id="test-multi-column-red">
     46     <div id="first-child">ab cd</div>
     47 	ef gh ij kl
     48   </div>
     49 
     50   <div id="reference-overlapping-green"></div>
     51 
     52   <!--
     53 
     54   Expected result (before the overlapping):
     55 
     56   *********************
     57   | margin- |   ef    |
     58   | top red |         |
     59   | back    |   gh    |
     60   | ground  |         |
     61   *********************
     62   |   ab    |   ij    |
     63   |         |         |
     64   |   cd    |   kl    |
     65   |         |         |
     66   *********************
     67 
     68   -->
     69 
     70  </body>
     71 </html>