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.html (2503B)


      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>CSS Grid Test: Grid Lanes layout column sizing - min-content</title>
      9  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
     10  <link rel="help" href="https://drafts.csswg.org/css-grid-3/#track-sizing">
     11  <link rel="match" href="grid-lanes-intrinsic-sizing-cols-003-mix2-ref.html">
     12  <style>
     13 
     14 @import "support/grid-lanes-intrinsic-sizing-visual.css";
     15 
     16 grid {
     17  display: inline-grid-lanes;
     18  gap: 1px 2px;
     19  /* keep fixed values small enough for spanners to have an effect */
     20  grid-template-columns: 1.1ch auto 1.4ch 1fr;
     21  border: 1px solid;
     22  padding: 0 1px 0 2px;
     23  vertical-align: top;
     24  width: min-content;
     25 }
     26 </style>
     27 
     28 <body>
     29 
     30 <section>
     31 <grid title="Wider first item 2ch">
     32  <item style="width:2ch">1</item>
     33  <item>2 2</item>
     34  <item>3 3</item>
     35  <item>4</item>
     36  <item>5 5</item>
     37 </grid>
     38 
     39 <grid title="Wrapped last item 2ch">
     40  <item>1</item>
     41  <item>2 2</item>
     42  <item>3 3</item>
     43  <item>4</item>
     44  <item style="width:2ch">5 5</item>
     45 </grid>
     46 
     47 <grid title="Wrapped last item 2ch col 2">
     48  <item>1</item>
     49  <item>2 2</item>
     50  <item>3 3</item>
     51  <item>4</item>
     52  <item style="width:2ch; grid-column:2">5 5</item>
     53 </grid>
     54 
     55 <grid title="Last item 4ch col 2-3">
     56  <item>1</item>
     57  <item>2 2</item>
     58  <item>3 3</item>
     59  <item>4</item>
     60  <item style="width:4ch; grid-column:2/span 2">5 5</item>
     61 </grid>
     62 
     63 <grid title="Item col 2-3 + Item 5ch col 1-3">
     64  <item>1</item>
     65  <item>2 2</item>
     66  <item>3 3</item>
     67  <item>4</item>
     68  <item style="grid-column:2/span 2">5 5</item>
     69  <item style="width:5ch; grid-column:1/span 3">6</item>
     70 </grid>
     71 
     72 <grid title="Item 3ch col 2-3 + Item 5ch col 1-3">
     73  <item>1</item>
     74  <item>2 2</item>
     75  <item>3 3</item>
     76  <item>4</item>
     77  <item style="width:3ch; 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 title="Last item span 4">
     82  <item>1</item>
     83  <item>2 2</item>
     84  <item>3 3</item>
     85  <item>4</item>
     86  <item style="grid-column:span 4">5 5</item>
     87 </grid>
     88 
     89 <grid title="Last item 6ch span 4">
     90  <item>1</item>
     91  <item>2 2</item>
     92  <item>3 3</item>
     93  <item>4</item>
     94  <item style="width:6ch; grid-column:span 4">5 5</item>
     95 </grid>
     96 
     97 <grid title="Last item 6ch span 3">
     98  <item>1</item>
     99  <item>2 2</item>
    100  <item>3 3</item>
    101  <item>4</item>
    102  <item style="width:6ch; grid-column:span 3">5 5</item>
    103 </grid>
    104 </section>
    105 </body>