tor-browser

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

multicol-nested-002.xht (1908B)


      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: multicolumn and margin-bottom collapsing</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-11 -->
      7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" />
      8   <link rel="match" href="multicol-nested-002-ref.xht" />
      9   <meta name="assert" content="This test checks that a block container element's margin-bottom can collapse with its multi-column parent's margin-bottom if no line boxes, no clearance, no padding and no border separate them." />
     10   <meta name="flags" content="ahem" />
     11   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12   <style type="text/css"><![CDATA[
     13   body {margin: 0em;}
     14 
     15   body > div
     16   {
     17   font: 1.25em/1 Ahem;
     18   width: 32em;
     19 
     20   column-gap: 1em;
     21   column-width: 8em;
     22   }
     23 
     24   /*
     25 
     26   N == max(1, floor((available-width + column-gap) / (column-width + column-gap)));
     27   N == max(1, floor((32em + 1em) / (8em + 1em)));
     28   N == max(1, floor(33em / 9em));
     29   N == max(1, floor(3.6));
     30   N == max(1, 3);
     31   N == 3;
     32 
     33   W == ((available-width + column-gap) / N) - column-gap;
     34   W == ((32em + 1em) / 3) - 1em;
     35   W == (33em / 3) - 1em;
     36   W == (11em) - 1em;
     37   W == 10em;
     38 
     39   */
     40 
     41   div
     42   {
     43   background: yellow;
     44   color: black;
     45   orphans: 1;
     46   widows: 1;
     47   }
     48 
     49   div > div {margin: 0 1em 1em;}
     50 
     51   div + div {color: blue;}
     52 
     53   div + div + div {color: pink;}
     54   ]]></style>
     55  </head>
     56 
     57  <body>
     58 
     59   <div>
     60 	<div>
     61 		bl ac
     62 		bl ac
     63 		bl ac
     64 		bl ac
     65 	</div>
     66 	<div>
     67 		bl ue
     68 		bl ue
     69 		bl ue
     70 		bl ue
     71 	</div>
     72 	<div>
     73 		Pi nk
     74 		Pi nk
     75 		Pi nk
     76 		Pi nk
     77 	</div>
     78   </div>
     79 
     80  </body>
     81 </html>