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


      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 - max-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">
     11  <link rel="match" href="grid-lanes-intrinsic-sizing-cols-004-fr-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  grid-template-columns: 1fr 2fr 1fr 1fr;
     20  border: 1px solid;
     21  padding: 0 1px 0 2px;
     22  vertical-align: top;
     23  width: max-content;
     24 }
     25 </style>
     26 
     27 <body>
     28 
     29 <section>
     30 <grid title="Wider 1st item 2ch">
     31  <item style="width:2ch">1</item>
     32  <item>2 2</item>
     33  <item>3 3</item>
     34  <item>4</item>
     35  <item>5 5</item>
     36 </grid>
     37 
     38 <grid title="Wrapped 5th item 2ch">
     39  <item>1</item>
     40  <item>2 2</item>
     41  <item>3 3</item>
     42  <item>4</item>
     43  <item style="width:2ch">5 5</item>
     44 </grid>
     45 
     46 <grid title="Wrapped 5th item 2ch in col 2">
     47  <item>1</item>
     48  <item>2 2</item>
     49  <item>3 3</item>
     50  <item>4</item>
     51  <item style="width:2ch; grid-column:2">5 5</item>
     52 </grid>
     53 
     54 <grid title="5th item 4ch in col 2-3">
     55  <item>1</item>
     56  <item>2 2</item>
     57  <item>3 3</item>
     58  <item>4</item>
     59  <item style="width:4ch; grid-column:2/span 2">5 5</item>
     60 </grid>
     61 
     62 <grid title="5th item in col 2-3, 6th item 5ch in col 1-3">
     63  <item>1</item>
     64  <item>2 2</item>
     65  <item>3 3</item>
     66  <item>4</item>
     67  <item style="grid-column:2/span 2">5 5</item>
     68  <item style="width:5ch; grid-column:span 3/4">6</item>
     69 </grid>
     70 
     71 <grid title="5th item 3ch in col 2-3, 6th item 5ch in col 1-3">
     72  <item>1</item>
     73  <item>2 2</item>
     74  <item>3 3</item>
     75  <item>4</item>
     76  <item style="width:3ch; grid-column:span 2/4">5 5</item>
     77  <item style="width:5ch; grid-column:1/span 3">6</item>
     78 </grid>
     79 
     80 <grid title="5th item span 4">
     81  <item>1</item>
     82  <item>2 2</item>
     83  <item>3 3</item>
     84  <item>4</item>
     85  <item style="grid-column:span 4">5 5</item>
     86 </grid>
     87 
     88 <grid title="5th item 6ch span 4">
     89  <item>1</item>
     90  <item>2 2</item>
     91  <item>3 3</item>
     92  <item>4</item>
     93  <item style="width:6ch; grid-column:span 4">5 5</item>
     94 </grid>
     95 
     96 <grid title="5th item 6ch span 3">
     97  <item>1</item>
     98  <item>2 2</item>
     99  <item>3 3</item>
    100  <item>4</item>
    101  <item style="width:6ch; grid-column:span 3">5 5</item>
    102 </grid>
    103 </section>
    104 </body>