tor-browser

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

intrinsic-percent-replaced-016.html (1006B)


      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-3/#intrinsic-sizes">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1800991">
      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 width is transferring through aspect-ratio as a percentage basis for its children when computing their max-content contribution.">
      9 
     10 <style>
     11 .outer {
     12  width: 200px;
     13  aspect-ratio: 2/1;
     14 }
     15 .inner {
     16  width: max-content;
     17  height: 100%;
     18  background: red;
     19 }
     20 img {
     21  height: 100%;
     22 }
     23 </style>
     24 
     25 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     26 <div class="outer">
     27  <div class="inner">
     28    <div style="height:100%">
     29      <img src="aspect-ratio/support/200x200-green.png">
     30    </div>
     31  </div>
     32 </div>