tor-browser

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

flex-aspect-ratio-029.html (751B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: auto height img with max-width, max-height, and attributes width / height inside column flexbox</title>
      3 <link rel="help" href="https://html.spec.whatwg.org/#map-to-the-aspect-ratio-property-(using-dimension-rules)">
      4 <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#layout-algorithm">
      5 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      6 
      7 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      8 <style>
      9    div {
     10        display: flex;
     11    }
     12    img {
     13        max-height: 100px;
     14        max-width: 100px;
     15        height: auto;
     16    }
     17 </style>
     18 </head>
     19 <body>
     20  <div><img src="support/200x200-green.png" width="200" height="200"></div>
     21 </body>
     22 </html>