tor-browser

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

block-aspect-ratio-058.html (1059B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      4 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      5 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1918576">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="This test verifies that the outer div's max-height shouldn't establish a percentage basis to resolve the target's height when computing outer div's min-content width.">
      9 
     10 <style>
     11 #reference-overlapped-green {
     12  position: absolute;
     13  background-color: green;
     14  width: 100px;
     15  height: 100px;
     16  z-index: -1;
     17 }
     18 .outer {
     19  width: min-content;
     20  max-height: 100px;
     21  background: red;
     22 }
     23 .target {
     24  aspect-ratio: 1/1;
     25  height: 100%;
     26 }
     27 </style>
     28 
     29 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     30 <div id="reference-overlapped-green"></div>
     31 <div class="outer">
     32  <div class="target"></div>
     33 </div>