tor-browser

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

align-items-006.html (1692B)


      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 'column' direction and 'align-items' property set to 'flex-start'</title>
      5        <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      6        <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" />
      7        <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-direction-property" />
      8        <link rel="match" href="reference/align-content-001-ref.html" />
      9        <meta name="assert" content="This test checks that 'align-items: flex-start' implies the flex item's 'auto' width to be resolved as 'fit-content'." />
     10        <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11        <style type="text/css">
     12            .block {
     13                position: absolute;
     14                width: 300px;
     15                height: 100px;
     16            }
     17            #flexbox
     18            {
     19                font: 50px/1 Ahem;
     20                background: green;
     21                flex-direction: column;
     22                align-items: flex-start;
     23                display: flex;
     24                width: 300px;
     25                height: 100px;
     26            }
     27        </style>
     28    </head>
     29    <body>
     30        <p>Test passes if there is no red visible on the page.</p>
     31        <div class="block">
     32            <div style="width: 200px; height: 50px; background: green"></div>
     33        </div>
     34        <div id="flexbox">
     35            <div style="background: red; color: red">XXXX</div>
     36        </div>
     37    </body>
     38 </html>