tor-browser

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

align-self-010.html (1417B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Flexbox Test: align-self - auto and align-items - baseline</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 <meta name="assert" content="The 'align-self' property set 'auto' aligns the flex items to the baseline of content when 'align-items' set 'baseline'">
      9 <style>
     10  #test {
     11    align-items: baseline;
     12    border: 1px solid black;
     13    display: flex;
     14  }
     15  #test div {
     16    align-self: auto;
     17  }
     18  #div1 {
     19    height: 90px;
     20    font-size: 20px;
     21    width: 30px;
     22  }
     23  #div2 {
     24    height: 50px;
     25    font-size: 10px;
     26    width: 30px;
     27  }
     28  #div3 {
     29    height: 100px;
     30    font-size: 30px;
     31    width: 30px;
     32  }
     33  #div4 {
     34    height: 80px;
     35    font-size: 15px;
     36    width: 30px;
     37  }
     38 </style>
     39 <body>
     40  <p>Test passes if the underline of all 'a' characters within black border box is horizontal and no breaking.</p>
     41  <div id="test">
     42    <div id="div1"><a href="#">aaa</a></div>
     43    <div id="div2"><a href="#">aaaaa</a></div>
     44    <div id="div3"><a href="#">aa</a></div>
     45    <div id="div4"><a href="#">aaa</a></div>
     46  </div>
     47 </body>