tor-browser

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

align-self-stretch-auto-margins.html (650B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11195#issuecomment-2824879710">
      3 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      4 <style>
      5 .container {
      6  position: relative;
      7  width: 200px;
      8  height: 200px;
      9  top: -50px;
     10  left: -50px;
     11 }
     12 .abspos {
     13  position: absolute;
     14  inset: 50px;
     15  margin: auto 0 auto 0;
     16  align-self: stretch;
     17  background: green;
     18 }
     19 .abspos::before {
     20  content: '';
     21  width: 50px;
     22  height: 50px;
     23  display: block;
     24 }
     25 </style>
     26 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     27 <div class="container">
     28  <div class="abspos"></div>
     29 </div>