tor-browser

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

grid-lanes-intrinsic-sizing-cols-004-auto-ref.html (3130B)


      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 max-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  align-items: start;
     21  width: max-content;
     22  grid-template-columns: repeat(4, auto);
     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>
     39  <item style="width:2ch">1</item>
     40  <item>2 2</item>
     41  <item>3 3</item>
     42  <item>4</item>
     43  <item>5 5</item>
     44 
     45  <item class="hidden" style="grid-column: 4">0 0</item>
     46 </grid>
     47 
     48 <grid>
     49  <item>1</item>
     50  <item>2 2</item>
     51  <item>3 3</item>
     52  <item>4</item>
     53  <item style="width: 2ch; grid-area: 2/1">5 5</item>
     54 
     55  <item class="hidden" style="grid-area: 2/1">0 0</item>
     56  <item class="hidden" style="grid-area: 2/4">0 0</item>
     57 </grid>
     58 
     59 <grid>
     60  <item>1</item>
     61  <item>2 2</item>
     62  <item>3 3</item>
     63  <item>4</item>
     64  <item style="width:2ch; grid-column: 2">5 5</item>
     65 
     66  <item class="hidden" style="grid-area: 2/1">0 0</item>
     67  <item class="hidden" style="grid-area: 2/4">0 0</item>
     68 </grid>
     69 
     70 <grid>
     71  <item>1</item>
     72  <item>2 2</item>
     73  <item>3 3</item>
     74  <item>4</item>
     75  <item style="width:4ch; grid-column:2/span 2">5 5</item>
     76 
     77  <item class="hidden" style="grid-area: 2/1">0 0</item>
     78  <item class="hidden" style="grid-area: 2/4">0 0</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="grid-column:2/span 2">5 5</item>
     87  <item style="width:5ch; grid-column:span 3/4">6</item>
     88 
     89  <item class="hidden" style="grid-area: 2/1">0 0</item>
     90  <item class="hidden" style="grid-area: 2/4">0 0</item>
     91 </grid>
     92 
     93 <grid>
     94  <item>1</item>
     95  <item>2 2</item>
     96  <item>3 3</item>
     97  <item>4</item>
     98  <item style="width:3ch; grid-column:span 2/4">5 5</item>
     99  <item style="width:5ch; grid-column:1/span 3">6</item>
    100 
    101  <item class="hidden" style="grid-area: 2/1">0 0</item>
    102  <item class="hidden" style="grid-area: 2/4">0 0</item>
    103 </grid>
    104 
    105 <grid>
    106  <item>1</item>
    107  <item>2 2</item>
    108  <item>3 3</item>
    109  <item>4</item>
    110  <item style="grid-area: 2/1/3/5">5 5</item>
    111 
    112  <item class="hidden" style="grid-area: 2/1">0 0</item>
    113  <item class="hidden" style="grid-area: 2/4">0 0</item>
    114 </grid>
    115 
    116 <grid>
    117  <item>1</item>
    118  <item>2 2</item>
    119  <item>3 3</item>
    120  <item>4</item>
    121  <item style="width:6ch; grid-area: 2/1/3/5">5 5</item>
    122 
    123  <item class="hidden" style="grid-area: 2/1">0 0</item>
    124  <item class="hidden" style="grid-area: 2/4">0 0</item>
    125 </grid>
    126 
    127 <grid>
    128  <item>1</item>
    129  <item>2 2</item>
    130  <item>3 3</item>
    131  <item>4</item>
    132  <item style="width:6ch; grid-area: 2/1/3/4">5 5</item>
    133 
    134  <item class="hidden" style="grid-area: 2/1">0 0</item>
    135  <item class="hidden" style="grid-area: 2/4">0 0</item>
    136  <item class="hidden" style="width:6ch; grid-area: 2/2/3/5">0 0</item>
    137 </grid>
    138 </section>
    139 </body>