tor-browser

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

auto-track-sizing-001.html (1699B)


      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>Test: subgrid auto track sizing</title>
      9  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1558705">
     10  <link rel="help" href="https://drafts.csswg.org/css-grid-2">
     11  <link rel="match" href="auto-track-sizing-001-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: grid;
     19  max-width: 260px;
     20  padding: 1px 5px;
     21  border: 1px solid;
     22 }
     23 .subgrid {
     24  display: grid;
     25  grid-template-rows: subgrid;
     26  padding: 3px 5px 7px 11px;
     27  border-style: solid;
     28  border-width: 5px 7px 11px 3px;
     29  margin: 7px 11px 3px 5px;
     30  background: grey;
     31 }
     32 
     33  </style>
     34 </head>
     35 <body>
     36 
     37 <article class="grid">
     38  <div class="subgrid">
     39    The cat can not be separated from milk
     40  </div>
     41 </article>
     42 
     43 <article class="grid" style="grid-template-columns: 100px auto">
     44  <div class="subgrid">
     45    The cat can not be separated from milk
     46  </div>
     47 </article>
     48 
     49 <article class="grid" style="grid-template-columns: auto 100px">
     50  <div class="subgrid" style="grid-column:2">
     51    The cat can not be separated from milk
     52  </div>
     53 </article>
     54 
     55 <article class="grid" style="grid-template-columns: auto 100px auto">
     56  <div class="subgrid" style="grid-column:2 / span 2">
     57    The cat can not be separated from milk
     58  </div>
     59 </article>
     60 
     61 <article class="grid" style="grid-template-columns: auto 100px auto">
     62  <div class="subgrid" style="grid-column:1 / span 3">
     63    The cat can not be separated from milk
     64  </div>
     65 </article>
     66 
     67 </body>
     68 </html>