tor-browser

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

justify-content-001.htm (1671B)


      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: A flex container with 'justify-content' property set to 'center'</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/#justify-content-property" />
      7        <link rel="match" href="reference/justify-content-001-ref.html">
      8        <meta name="flags" content="image">
      9        <meta name="assert" content="This test checks that the flex container with 'justify-content: center' centers flex items in the main axis of each line." />
     10        <meta name="fuzzy" content="maxDifference=1; totalPixels=0-5841" />
     11        <style type="text/css">
     12            #flexbox
     13            {
     14                background: linear-gradient(to right, blue 0, blue 75px, red 75px, red 225px, orange 225px, orange 300px);
     15                display: flex;
     16                justify-content: center;
     17                height: 100px;
     18                width: 300px;
     19            }
     20            div div
     21            {
     22                background-color: orange;
     23                width: 76px;
     24            }
     25            .blue
     26            {
     27                background-color: blue;
     28            }
     29        </style>
     30    </head>
     31    <body>
     32        <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>
     33        <div id="flexbox">
     34            <div class="blue"></div>
     35            <div></div>
     36        </div>
     37    </body>
     38 </html>