tor-browser

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

flex-aspect-ratio-033.html (666B)


      1 <!DOCTYPE html>
      2 <title>aspect-ratio flex item</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#definite-sizes">
      4 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      5 <meta name="assert" content="Item's final height is definite when the flex base size is definite because it derives from item's aspect ratio and specified width, not from layout">
      6 
      7 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      8 
      9 <div style="display: flex; flex-direction: column;">
     10  <div style="aspect-ratio: 1/1; background: red; width: 100px;">
     11    <div style="height: 100%; background: green;"></div>
     12  </div>
     13 </div>