tor-browser

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

grid-gap-larger-002.html (919B)


      1 <!DOCTYPE HTML>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html><head>
      7  <meta charset="utf-8">
      8  <title>CSS Grid Test: subgrid with larger gap than parent grid</title>
      9  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
     10  <link rel="help" href="https://drafts.csswg.org/css-grid-2">
     11  <link rel="match" href="grid-gap-larger-002-ref.html">
     12  <style>
     13 html,body {
     14  color:black; background-color:white; font:16px/1 monospace; padding:0; margin:0;
     15 }
     16 
     17 .grid {
     18  display:inline-grid;
     19  grid:100px auto/100px;
     20  gap:20px;
     21  border:3px solid;
     22  background:yellow;
     23 }
     24 span { background:lightgrey; }
     25 span:nth-child(2n+1) { background:grey; }
     26 </style>
     27 </head>
     28 <body>
     29 
     30 <div class="grid">
     31  <div style="display:grid; grid:subgrid/100px; gap:100px; grid-row:span 2">
     32    <span>a</span><span>b</span>
     33  </div>
     34 </div>
     35 
     36 </body>
     37 </html>