tor-browser

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

replaced-element-047.tentative.html (869B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
      3 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      4 <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#valdef-width-max-content">
      5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/12333">
      6 <link rel="help" href="https://github.com/servo/servo/issues/37433">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      8 
      9 <style>
     10 .red {
     11  position: absolute;
     12  z-index: -1;
     13  width: 100px;
     14  height: 100px;
     15  background: red;
     16 }
     17 canvas {
     18  display: block;
     19  width: max-content;
     20  height: 0px;
     21  min-height: max-content;
     22  aspect-ratio: 1;
     23  background: green;
     24 }
     25 </style>
     26 
     27 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     28 
     29 <div class="red"></div>
     30 <canvas width="100" height="50"></canvas>