tor-browser

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

overflow-replaced-element-001.html (952B)


      1 <!DOCTYPE html>
      2 <title>CSS Overflow: overflow replaced element with borders and negative end margins</title>
      3 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      4 <link rel="help" href="https://drafts.csswg.org/css-overflow/#scrollable">
      5 <meta name="assert" content="Checks that the scrollable overflow of a replaced elements with borders is properly computed even when it has a negative margin-right and margin-bottom.">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script src="/resources/check-layout-th.js"></script>
      9 <body onload="checkLayout('#wrapper');">
     10  <div id="wrapper" style="width: 200px; height: 100px; overflow: scroll;"
     11      data-expected-scroll-width="400" data-expected-scroll-height="300">
     12    <img style="border: 50px solid green; width: 300px; height: 200px;
     13                margin-right: -100px; margin-bottom: -200px;" />
     14  </div>
     15 </body>