tor-browser

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

flex-minimum-height-flex-items-002.xht (1754B)


      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="assert" content="Checks that minimum height for flex items is the specified size if it's smaller than the min-content size." />
      9         <style type="text/css"><![CDATA[
     10             #reference-overlapped-red {
     11                 position: absolute;
     12                 background-color: red;
     13                 width: 100px;
     14                 height: 100px;
     15                 z-index: -1;
     16             }
     17 
     18             #constrained-flex {
     19                 display: flex;
     20                 flex-direction: column;
     21                 width: 100px;
     22                 height: 10px;
     23             }
     24 
     25             #test-flex-item-overlapping-green {
     26                 background-color: green;
     27                 height: 100px;
     28             }
     29 
     30             #content-100x200 {
     31                 width: 100px;
     32                 height: 200px;
     33             }
     34         ]]></style>
     35     </head>
     36     <body>
     37         <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     38 
     39         <div id="reference-overlapped-red"></div>
     40         <div id="constrained-flex">
     41             <div id="test-flex-item-overlapping-green">
     42                 <div id="content-100x200"></div>
     43             </div>
     44         </div>
     45     </body>
     46 </html>