tor-browser

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

flex-aspect-ratio-030.html (715B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: auto height img with specified width 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        width: 100px;
     14        height: auto;
     15    }
     16 </style>
     17 </head>
     18 <body>
     19    <div><img src="support/200x200-green.png" width="200" height="200"></div>
     20 </body>
     21 </html>