tor-browser

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

replaced-element-025.html (869B)


      1 <!DOCTYPE html>
      2 <html>
      3  <title>CSS aspect-ratio: image with aspect-ratio and contain:size</title>
      4  <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com">
      5  <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      6  <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      7  <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5550">
      8  <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      9  <meta name="assert" content="This test verifies aspect-ratio's <ratio> is used to determine the image's size because contain:size enforces no intrinsic aspect ratio.">
     10 
     11  <style>
     12  img {
     13    width: 100px;
     14    aspect-ratio: 1/1;
     15    contain: size;
     16  }
     17  </style>
     18 
     19  <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     20  <img src="support/20x50-green.png">
     21 </html>