tor-browser

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

flex-aspect-ratio-031.html (688B)


      1 <!DOCTYPE html>
      2 <title>aspect-ratio flex item</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio-automatic">
      4 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      5 <meta name="assert" content="There's enough space for padding after transferring flex-imposed definite height through the aspect ratio for a border-box flex item.">
      6 
      7 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      8 <div style="display: flex; height: 50px;">
      9  <div style="padding-left: 100px; box-sizing: border-box; aspect-ratio: 1/1; background: green;"></div>
     10 </div>
     11 <div style="width: 100px; height: 50px; background: green"></div>