tor-browser

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

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


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: auto size img with attributes width and 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        width: 100px;
     11        display: flex;
     12        flex-direction: column;
     13    }
     14    img {
     15        width: auto;
     16        height: auto;
     17    }
     18 </style>
     19 </head>
     20 
     21 <body>
     22    <div><img width="200" height="200" src="support/200x200-green.png" /></div>
     23 </body>
     24 </html>