tor-browser

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

grid-column-gap-002.html (2467B)


      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: 'grid-column-gap'</title>
      9  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1176792">
     10  <link rel="help" href="http://dev.w3.org/csswg/css-grid/#gutters">
     11  <link rel="match" href="grid-column-gap-002-ref.html">
     12  <style type="text/css">
     13 body,html { color:black; background:white; font-size:16px; padding:0; margin:0; }
     14 
     15 .grid {
     16  display: grid;
     17  grid-auto-columns: minmax(0,1fr);
     18  border: dashed blue;
     19  float: left;
     20  clear: left;
     21  grid-column-gap: 3px;
     22 }
     23 
     24 .c1 { grid-column: 1 / span 2; min-width:40px; }
     25 .r1 { grid-column: 2 / span 3; min-width:70px; }
     26 .c3 { grid-column: 3 / span 1; min-width:0; }
     27 
     28 span {
     29  background: gray;
     30  border-style: solid;
     31  border-width: 1px 3px 5px 7px;
     32  padding: 1px 3px;
     33  margin: 1px 5px;
     34  justify-self: stretch;
     35 }
     36 
     37 x { display:inline-block; width:10px; height:18px; }
     38  </style>
     39 </head>
     40 <body>
     41 
     42 <div class="grid">
     43 <span class="c1"><x></x></span>
     44 <span class="r1"><x></x></span>
     45 </div>
     46 
     47 <div class="grid">
     48 <span class="c1"><x></x></span>
     49 <span class="r1"><x></x></span>
     50 <span class="c3"><x></x></span>
     51 </div>
     52 
     53 <div class="grid">
     54 <span class="c1"><x></x></span>
     55 <span class="r1"><x></x></span>
     56 <span class="r1"><x></x></span>
     57 <span class="r1"><x></x></span>
     58 </div>
     59 <div class="grid" style="grid-template-columns: minmax(0,1fr) 400px;">
     60 <span class="c1"><x></x></span>
     61 <span class="r1"><x></x></span>
     62 <span class="c3"><x></x></span>
     63 </div>
     64 
     65 <div class="grid" style="width:500px;">
     66 <span class="c1" style="min-width:20px"><x></x></span>
     67 <span class="r1" style="min-width:10px"><x></x></span>
     68 <span class="r1" style="min-width:30px"><x></x></span>
     69 <span class="r1" style="min-width:10px"><x></x></span>
     70 </div>
     71 
     72 <div class="grid" style="grid-template-columns: minmax(0,1fr) minmax(0,500px);">
     73 <span class="c1"><x></x></span>
     74 <span class="r1"><x></x></span>
     75 <span class="c3"><x></x></span>
     76 </div>
     77 
     78 <div class="grid">
     79 <span class="c1" style="width:100px"><x></x></span>
     80 <span class="r1" style="width:300px"><x></x></span>
     81 <span class="c3"><x></x></span>
     82 </div>
     83 
     84 <div class="grid">
     85 <span class="c1" style="width:100px; border-sizing:border-box"><x></x></span>
     86 <span class="r1" style="width:300px; border-sizing:border-box"><x></x></span>
     87 <span class="c3"><x></x></span>
     88 </div>
     89 
     90 </body>
     91 </html>