tor-browser

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

intrinsic-size-025.html (912B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: max-content contribution of image with width:max-content</title>
      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://github.com/w3c/csswg-drafts/issues/5032">
      7 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      8 <meta name="assert" content="This test verifies that the image's max-content contribution considers the definite height transferring through the natural aspect-ratio.">
      9 
     10 <style>
     11 img {
     12  vertical-align: top;
     13 }
     14 </style>
     15 
     16 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     17 <div style="width: max-content; background: red;">
     18  <img src="support/200x200-green.png" style="height: 100px; width: max-content">
     19 </div>