tor-browser

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

grid-container-auto-margins-scrollbars-001.html (1151B)


      1 <!DOCTYPE html>
      2 <title>CSS Grid Layout Test: Ignore auto-margins in the track sizing algorithm</title>
      3 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      4 <link rel="help" href="https://drafts.csswg.org/css-grid/#alignment"/>
      5 <link rel="help" href="https://drafts.csswg.org/css-grid/#auto-margins"/>
      6 <link rel="issue" href="https://bugs.chromium.org/p/chromium/issues/detail?id=776581"/>
      7 <link rel="match" href="../reference/grid-container-auto-margins-scrollbars-001-ref.html">
      8 <meta name="assert" content="This test ensures that the grid logic ignores any 'auto' margin during the track sizing algorithm. Previously resolved auto-margins should not affect the track sizing computation."/>
      9 <style>
     10 body {
     11   display: grid;
     12   grid-template-columns: auto;
     13   grid-template-rows: 1fr auto;
     14   height: 100vh;
     15 }
     16 .item1 {
     17   margin: 0px auto;
     18 }
     19 .item2 {
     20   background-color: cyan;
     21   height: 50px;
     22 }
     23 </style>
     24 <div class="item1">item1</div>
     25 <div class="item2">item2</div>
     26 <script>
     27    document.body.style = "overflow: hidden;";
     28    document.body.offsetLeft;
     29    document.body.style = "overflow: auto;";
     30 </script>