tor-browser

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

grid-gap-002.html (1489B)


      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 border-bottom</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="stylesheet" type="text/css" href="/fonts/ahem.css">
     12  <link rel="match" href="grid-gap-002-ref.html">
     13  <style>
     14 html,body {
     15  color:black; background-color:white; font:24px/1 Ahem; padding:0; margin:0;
     16 }
     17 
     18 .grid {
     19  display: grid;
     20  grid: repeat(4, auto) / repeat(5, auto);
     21  place-content: start;
     22  border: 1px solid;
     23 }
     24 
     25 .subgrid {
     26  display: grid;
     27  grid: subgrid / auto;
     28  gap: 10px 20px;
     29  background: lightgrey;
     30  grid-column: 2 / span 5;
     31  grid-row: 2 / span 5;
     32  min-width:10px;
     33  min-height:0;
     34  border: 0 solid lightblue;
     35  border-bottom-width: 40px;
     36  background: yellow;
     37 }
     38 
     39 .subgrid > * { background: lightgrey; }
     40 
     41 x {
     42  min-width:10px;
     43  min-height:0px;
     44 }
     45 x:nth-child(2n+1) { background: silver; }
     46 x:nth-child(2n+2) { background: magenta; }
     47 x:nth-child(2n+3) { background: pink; }
     48 x:nth-child(2n+4) { background: grey; }
     49 
     50  </style>
     51 </head>
     52 <body>
     53 
     54 <div class="grid">
     55 <x style="grid-row:1"></x><x style="grid-row:2"></x><x style="grid-row:3"></x><x style="grid-row:4"></x><x style="grid-row:5"></x><x style="grid-row:6"></x>
     56 <div class="subgrid">
     57 <c>c</c>
     58 <d>d</d>
     59 </div>
     60 </div>
     61 
     62 </body>
     63 </html>