tor-browser

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

intrinsic-percent-replaced-009.html (586B)


      1 <!doctype html>
      2 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes">
      3 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1677353">
      4 <link rel="match" href="intrinsic-percent-replaced-009-ref.html">
      5 <style>
      6 * {
      7  margin: 0;
      8  padding: 0;
      9  box-sizing: border-box;
     10 }
     11 
     12 html, body {
     13  width: 100%;
     14  height: 100%;
     15 }
     16 
     17 body {
     18  padding: 20px;
     19  position: relative;
     20 }
     21 
     22 .parent {
     23  border: 3px solid green;
     24  position: absolute;
     25  height: 60%;
     26 }
     27 
     28 .parent img {
     29  height: 100%;
     30 }
     31 </style>
     32 <div class="parent">
     33  <img src="/images/blue96x96.png">
     34 </div>