tor-browser

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

block-aspect-ratio-with-margin-collapsing-001.html (835B)


      1 <!DOCTYPE html>
      2 <title>CSS aspect-ratio: margin-collapsing with aspect-ratio on child element</title>
      3 <link rel="author" title="Mozilla" href="https://www.mozilla.org/">
      4 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio">
      5 <link rel="help" href="https://drafts.csswg.org/css2/#collapsing-margins">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
      7 
      8 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      9 
     10 <div style="background: green; width: 100px; height: 25px; margin-bottom: -50px;"></div>
     11 <div style="background: green; width: 100px; margin: 0px;">
     12  <div style="margin-top: 50px; margin-bottom: 100px;
     13              width: 100px; aspect-ratio: 2/1"></div>
     14 </div>
     15 <div style="background: green; width: 100px; height: 25px; margin-top: -100px;"></div>