tor-browser

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

replaced-element-dynamic-aspect-ratio.html (499B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: img + dynamic aspect-ratio</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      4 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      5 
      6 <style>
      7 body.changed img {
      8    aspect-ratio: 1/1;
      9 }
     10 </style>
     11 
     12 <body onload="document.body.classList.add('changed')">
     13 
     14 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     15 
     16 <img src="support/20x50-green.png" style="width: 100px">
     17 
     18 </body>