tor-browser

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

align-self-001.html (1223B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Flexbox Test: align-self - flex-start</title>
      4 <link rel="author" title="Intel" href="http://www.intel.com">
      5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com">
      6 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties">
      7 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" />
      8 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      9 <meta name="assert" content="The 'align-self' property set 'flex-start' aligns the flex items to the start edge of cross axis">
     10 <style>
     11  #test {
     12    background-color: red;
     13    display: flex;
     14    height: 100px;
     15    width: 100px;
     16  }
     17  #test div {
     18    align-self: flex-start;
     19    background-color: green;
     20    height: 50px;
     21    width: 25px;
     22  }
     23  #cover {
     24    background-color: green;
     25    height: 50px;
     26    margin-top: -50px;
     27    width: 100px;
     28  }
     29 </style>
     30 <body>
     31  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     32  <div id="test">
     33    <div></div>
     34    <div></div>
     35    <div></div>
     36    <div></div>
     37  </div>
     38  <div id="cover"></div>
     39 </body>