tor-browser

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

flex-002.htm (1824B)


      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 Test: The 'flex' shorthand adjusting the 'flex-shrink' sub-property</title>
      5        <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6        <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-property" />
      7        <link rel="match" href="reference/justify-content-001-ref.html">
      8        <meta name="assert" content="This test checks that the flex shrink factor is multiplied by the flex base size when distributing negative space."/>
      9        <style type="text/css">
     10            div
     11            {
     12                height: 50px;
     13            }
     14            #flexbox
     15            {
     16                background-color: red;
     17                display: flex;
     18                width: 300px;
     19            }
     20            #flexItem1
     21            {
     22                flex: 0 2 auto;
     23                width: 300px;
     24            }
     25            #flexItem2
     26            {
     27                width: 200px;
     28            }
     29            #flexItem1, #ref1
     30            {
     31                background-color: blue;
     32            }
     33            #flexItem2, #ref2
     34            {
     35                background-color: orange;
     36            }
     37            #ref1, #ref2
     38            {
     39                display: inline-block;
     40                width: 150px;
     41            }
     42        </style>
     43    </head>
     44    <body>
     45        <p>Test passes if there is a single blue rectangle on the left, a single orange rectangle directly to its right, and there is no red visible on the page.</p>
     46        <div id="flexbox">
     47            <div id="flexItem1"></div>
     48            <div id="flexItem2"></div>
     49        </div>
     50        <div id="ref1"></div><div id="ref2"></div>
     51    </body>
     52 </html>