tor-browser

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

flex-minimum-height-flex-items-003.xht (1937B)


      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 Flexible Box Test: Minimum height of flex items</title>
      5         <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
      6         <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#min-size-auto" title="4.5. Implied Minimum Size of Flex Items" />
      7         <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
      8         <meta name="flags" content="ahem" />
      9         <meta name="assert" content="Checks that minimum height for flex items is the min-content size if it's smaller than the specified size." />
     10         <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11         <style type="text/css"><![CDATA[
     12             #reference-overlapped-red {
     13                 position: absolute;
     14                 background-color: red;
     15                 width: 100px;
     16                 height: 100px;
     17                 z-index: -1;
     18             }
     19 
     20             #constrained-flex {
     21                 display: flex;
     22                 flex-direction: column;
     23                 width: 100px;
     24                 height: 10px;
     25             }
     26 
     27             #test-flex-item-overlapping-green {
     28                 color: green;
     29                 background-color: green;
     30                 height: 200px;
     31                 font: 50px/1 Ahem;
     32             }
     33 
     34             #content-100x100 {
     35                 width: 100px;
     36                 height: 100px;
     37             }
     38         ]]></style>
     39     </head>
     40     <body>
     41         <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     42 
     43         <div id="reference-overlapped-red"></div>
     44         <div id="constrained-flex">
     45             <div id="test-flex-item-overlapping-green">
     46                 <div id="content-100x100"></div>
     47             </div>
     48         </div>
     49     </body>
     50 </html>