tor-browser

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

no-overflow-with-table-cell-margins.html (649B)


      1 <!DOCTYPE html>
      2 <html>
      3 <link rel="help" href="https://drafts.csswg.org/css-tables-3/">
      4 <meta name="assert" content="Table cell margins do not contribute to layout overflow.">
      5 <script src="/resources/testharness.js"></script>
      6 <script src="/resources/testharnessreport.js"></script>
      7 <style>
      8 html {
      9  display: table;
     10  width: 100%;
     11  height: 100%;
     12 }
     13 body {
     14  display: table-cell;
     15  width: 100%;
     16 }
     17 </style>
     18 <body></body>
     19 <script>
     20  test(() => {
     21    const scroller = document.scrollingElement;
     22 
     23    // There shouldn't be any layout overflow on the root scrollable element.
     24    assert_equals(scroller.clientHeight, scroller.scrollHeight);
     25  });
     26 </script>