tor-browser

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

grid-column-gap-003.html (2460B)


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