tor-browser

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

scrollbars-auto-min-content-sizing.html (837B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1127415">
      3 <meta name="assert" content="The presence of a scrollbar should not make a min-sized flexbox, and a single flex-item differ in size.">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div style="display: flex; width: 100px;">
      7  <div id="outer" style="display: flex; width: min-content; height: 100px;">
      8    <div id="inner" style="flex: 0 0 auto; overflow-y: auto;">
      9      <div style="width: 100px; height: 3000px;"></div>
     10    </div>
     11  </div>
     12 </div>
     13 <script>
     14 test(() => {
     15  const outer = document.getElementById('outer');
     16  const inner = document.getElementById('inner');
     17  assert_equals(outer.getBoundingClientRect().width, inner.getBoundingClientRect().width);
     18 });
     19 </script>