tor-browser

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

align-self-stretch-auto-margins-aspect-ratio.html (688B)


      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 auto 50px 50px;
     15  margin: auto 0 auto 0;
     16  align-self: stretch;
     17  background: green;
     18 }
     19 .abspos::before {
     20  content: '';
     21  min-width: 50px;
     22  height: 100%;
     23  aspect-ratio: 1;
     24  display: block;
     25 }
     26 </style>
     27 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     28 <div class="container">
     29  <div class="abspos"></div>
     30 </div>