tor-browser

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

grid-lanes-intrinsic-sizing-cols-003-mix2-ref.html (2934B)


      1 <!DOCTYPE HTML>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html>
      7  <meta charset="utf-8">
      8  <title>Reference: Grid Lanes layout min-content sizing</title>
      9  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
     10  <style>
     11 
     12 @import "support/grid-lanes-intrinsic-sizing-visual.css";
     13 
     14 grid {
     15  display: inline-grid;
     16  gap: 1px 2px;
     17  border: 1px solid;
     18  padding: 0 1px 0 2px;
     19  vertical-align: top;
     20  width: min-content;
     21  /* keep fixed values small enough for spanners to have an effect */
     22  grid-template-columns: 1.1ch auto 1.4ch 1fr;
     23 }
     24 
     25 item {
     26  align-self: start;
     27 }
     28 
     29 .hidden {
     30  visibility: hidden;
     31  height: 0;
     32 }
     33 </style>
     34 
     35 <body>
     36 
     37 <section>
     38 <grid style="grid-template-columns: 1.1ch 2ch 1.4ch 2ch">
     39  <item style="width:2ch">1</item>
     40  <item style="grid-row: span 2">2 2</item>
     41  <item style="grid-row: span 2">3 3</item>
     42  <item>4</item>
     43  <item style="grid-row: span 2">5 5</item>
     44  <item class="hidden" style="grid-area: 2/4/4">0 0</item>
     45 </grid>
     46 
     47 <grid style="grid-template-columns: 1.1ch 2ch 1.4ch 2ch">
     48  <item>1</item>
     49  <item style="grid-row: span 2">2 2</item>
     50  <item style="grid-row: span 2">3 3</item>
     51  <item>4</item>
     52  <item style="grid-row: span 2; width: 2ch;">5 5</item>
     53  <item class="hidden" style="grid-area: 2/4/4">0 0</item>
     54 </grid>
     55 
     56 <grid>
     57  <item>1</item>
     58  <item>2 2</item>
     59  <item style="grid-row: span 2">3 3</item>
     60  <item>4</item>
     61  <item style="width:2ch; grid-column:2">5 5</item>
     62 </grid>
     63 
     64 <grid>
     65  <item>1</item>
     66  <item>2 2</item>
     67  <item>3 3</item>
     68  <item>4</item>
     69  <item style="width:4ch; grid-column:2/span 2">5 5</item>
     70 </grid>
     71 
     72 <grid>
     73  <item>1</item>
     74  <item>2 2</item>
     75  <item>3 3</item>
     76  <item>4</item>
     77  <item style="grid-column:2/span 2">5 5</item>
     78  <item style="width:5ch; grid-column:1/span 3">6</item>
     79 </grid>
     80 
     81 <grid>
     82  <item>1</item>
     83  <item>2 2</item>
     84  <item>3 3</item>
     85  <item>4</item>
     86  <item style="width:3ch; grid-column:2/span 2">5 5</item>
     87  <item style="width:5ch; grid-column:1/span 3">6</item>
     88 </grid>
     89 
     90 <grid>
     91  <item>1</item>
     92  <item style="grid-row: span 2">2 2</item>
     93  <item style="grid-row: span 2">3 3</item>
     94  <item>4</item>
     95  <item style="grid-area: 3/1/4/5">5 5</item>
     96 
     97  <item class="hidden">0 0</item>
     98  <item class="hidden">0 0</item>
     99 </grid>
    100 
    101 <grid>
    102  <item>1</item>
    103  <item style="grid-row: span 2">2 2</item>
    104  <item style="grid-row: span 2">3 3</item>
    105  <item>4</item>
    106  <item style="width:6ch; grid-area: 3/1/4/5">5 5</item>
    107 
    108  <item class="hidden">0 0</item>
    109  <item class="hidden">0 0</item>
    110 </grid>
    111 
    112 <grid>
    113  <item>1</item>
    114  <item style="grid-row: span 2">2 2</item>
    115  <item style="grid-row: span 2">3 3</item>
    116  <item>4</item>
    117  <item style="width:6ch; grid-area: 3/1/4/4">5 5</item>
    118 
    119  <item class="hidden">0 0</item>
    120  <item class="hidden">0 0</item>
    121  <item class="hidden" style="width:6ch; grid-area: 3/2/4/5">0 0</item>
    122 </grid>
    123 </section>
    124 </body>