tor-browser

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

multicol-overflowing-001.xht (2312B)


      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   <!--
      5   This test's original filename was multicol-inherit-003.xht
      6   and it has been modified and is now
      7   multicol-overflowing-001.xht
      8   -->
      9   <title>CSS Multi-column Layout Test: multicolumn and overflowing constrained dimensions</title>
     10   <link rel="author" title="Opera Software ASA" href="http://www.opera.com/" />
     11   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-09 -->
     12   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pagination-and-overflow-outside-multicol" title="8.2. Pagination and overflow outside multicol elements" />
     13   <link rel="match" href="multicol-overflowing-001-ref.xht" />
     14   <meta name="flags" content="ahem" />
     15   <meta name="assert" content="This test checks that the content of a multi-column element with a fixed height can overflow outside its fixed width according to the computed overflow value. In this test, the inline content of a multi-column element exceeds the available fixed height and fixed width for the multi-column element; therefore, it overflows outside of it and creates a 4th, 5th and 6th extra column boxes." />
     16   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     17   <style type="text/css"><![CDATA[
     18   body > div
     19   {
     20   font: 1.25em/1 Ahem;
     21   height: 2em;
     22   width: 32em;
     23 
     24   column-gap: 1em;
     25   column-width: 8em;
     26   }
     27 
     28   /*
     29 
     30   N == max(1, floor((available-width + column-gap) / (column-width + column-gap)));
     31   N == max(1, floor((32em + 1em) / (8em + 1em)));
     32   N == max(1, floor(33em / 9em));
     33   N == max(1, floor(3.6));
     34   N == max(1, 3);
     35   N == 3;
     36 
     37   W == ((available-width + column-gap) / N) - column-gap;
     38   W == ((32em + 1em) / 3) - 1em;
     39   W == (33em / 3) - 1em;
     40   W == (11em) - 1em;
     41   W == 10em;
     42 
     43   H == 2em;
     44 
     45   */
     46 
     47   div
     48   {
     49   background: yellow;
     50   color: black;
     51   orphans: 1;
     52   widows: 1;
     53   }
     54 
     55   div > div {margin: 0 1em 1em;}
     56 
     57   div + div {color: blue;}
     58 
     59   div + div + div {color: pink;}
     60   ]]></style>
     61  </head>
     62 
     63  <body>
     64 
     65   <div>
     66 	<div>
     67 		bl ac
     68 		bl ac
     69 		bl ac
     70 		bl ac
     71 	</div>
     72 	<div>
     73 		bl ue
     74 		bl ue
     75 		bl ue
     76 		bl ue
     77 	</div>
     78 	<div>
     79 		Pi nk
     80 		Pi nk
     81 		Pi nk
     82 		Pi nk
     83 	</div>
     84   </div>
     85 
     86  </body>
     87 </html>