tor-browser

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

align-self-013.html (1245B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Flexbox Test: align-self - invalid if applied to flex container</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 is invalid if applied to flex container">
     10 <style>
     11  #test {
     12    align-items: flex-start;
     13    align-self: flex-end;
     14    background-color: red;
     15    display: flex;
     16    height: 100px;
     17    width: 100px;
     18  }
     19  #test div {
     20    background-color: green;
     21    height: 50px;
     22    width: 25px;
     23  }
     24  #cover {
     25    background-color: green;
     26    height: 50px;
     27    margin-top: -50px;
     28    width: 100px;
     29  }
     30 </style>
     31 <body>
     32  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     33  <div id="test">
     34    <div></div>
     35    <div></div>
     36    <div></div>
     37    <div></div>
     38  </div>
     39  <div id="cover"></div>
     40 </body>