tor-browser

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

abs-pos-auto-margin-centered.html (597B)


      1 <!DOCTYPE HTML>
      2 <title> absolutely positioned element should be vertically centered even if the height is bigger than that of the containing block (reference) - bug 812899</title>
      3 <style>
      4 body > div {
      5    font-size: 16px;
      6    position: relative;
      7    border: red solid;
      8    margin-top: 5em;
      9    width: 5em;
     10    height: 5em;
     11 }
     12 
     13 body > div > div {
     14    position: absolute;
     15    border: medium solid blue;
     16    margin: auto auto;
     17    height: 150%;
     18    width: 150%;
     19    left: 0px;
     20    right: 0px;
     21    top: 0px;
     22    bottom: 0px;
     23 }
     24 </style>
     25 
     26 <body>
     27    <div>
     28        <div></div>
     29    </div>
     30 </body>
     31 
     32 </html>