tor-browser

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

multicol-reduce-000.xht (1980B)


      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: column width becomes wider to fill available space</title>
      5   <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" />
      6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 -->
      7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cw" title="3.1 'column-width'" />
      8   <link rel="match" href="multicol-reduce-000-ref.xht" />
      9   <meta name="flags" content="ahem" />
     10   <meta name="assert" content="This test checks that column width is increased to fill the available space: in this test, there are only 2 column boxes." />
     11   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12   <style type="text/css"><![CDATA[
     13   div#test, div#reference
     14   {
     15   background-color: yellow;
     16   border: black solid thin;
     17   color: orange;
     18   font: 1.25em/1 Ahem;
     19   margin-bottom: 0.5em;
     20   width: 30em;
     21   }
     22 
     23   div#test
     24   {
     25   column-gap: 0;
     26   column-width: 201px;
     27 
     28   /*
     29 
     30   N == max(1, floor((U + column-gap)/(column-width + column-gap)))
     31   N == max(1, floor((600px + 0px)/(201px + 0)))
     32   N == max(1, floor(600px/201px))
     33   N == max(1, floor(2.985))
     34   N == max(1, 2)
     35   N == 2;
     36 
     37   W == max(0, ((U + column-gap)/N - column-gap))
     38   W == max(0, ((600px + 0px)/2 - 0px))
     39   W == max(0, ((600px)/2 - 0px))
     40   W == max(0, (300px - 0px))
     41   W == max(0, 300px)
     42   W == 300px;
     43 
     44   */
     45   }
     46 
     47   span {color: blue;}
     48   ]]></style>
     49  </head>
     50  <body>
     51 
     52   <p>Test passes if the 2 rectangles with orange and blue vertical stripes are <strong>identical</strong>.</p>
     53 
     54   <div id="test">
     55   1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 <span>A B C D E F G H I J K L M N O P</span>
     56   </div>
     57 
     58   <div id="reference">
     59   1 2 3 4 5 6 7 8<span>A B C D E F G H </span><br />
     60   9 0 1 2 3 4 5 6<span>I J K L M N O P </span>
     61   </div>
     62 
     63  </body>
     64 </html>