tor-browser

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

grid-lanes-intrinsic-sizing-rows-003-mix2.html (2643B)


      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-rows-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  grid-lanes-direction: row;
     19  gap: 1px 2px;
     20  /* keep fixed values small enough for spanners to have an effect */
     21  grid-template-rows: 1.1ch auto 1.4ch 1fr;
     22  border: 1px solid;
     23  padding: 1px 0 2px 0;
     24  vertical-align: top;
     25  height: min-content;
     26 }
     27 
     28 item {
     29  /* allow for differing min-content and max-content sizes */
     30  writing-mode: vertical-rl;
     31  text-orientation: sideways;
     32 }
     33 </style>
     34 
     35 <body>
     36 
     37 <section>
     38 <grid title="Wider first item 2ch">
     39  <item style="height:2ch">1</item>
     40  <item>2 2</item>
     41  <item>3 3</item>
     42  <item>4</item>
     43  <item>5 5</item>
     44 </grid>
     45 
     46 <grid title="Wrapped last item 2ch">
     47  <item>1</item>
     48  <item>2 2</item>
     49  <item>3 3</item>
     50  <item>4</item>
     51  <item style="height:2ch">5 5</item>
     52 </grid>
     53 
     54 <grid title="Wrapped last item 2ch col 2">
     55  <item>1</item>
     56  <item>2 2</item>
     57  <item>3 3</item>
     58  <item>4</item>
     59  <item style="height:2ch; grid-row:2">5 5</item>
     60 </grid>
     61 
     62 <grid title="Last item 4ch col 2-3">
     63  <item>1</item>
     64  <item>2 2</item>
     65  <item>3 3</item>
     66  <item>4</item>
     67  <item style="height:4ch; grid-row:2/span 2">5 5</item>
     68 </grid>
     69 
     70 <grid title="Item col 2-3 + Item 5ch col 1-3">
     71  <item>1</item>
     72  <item>2 2</item>
     73  <item>3 3</item>
     74  <item>4</item>
     75  <item style="grid-row:2/span 2">5 5</item>
     76  <item style="height:5ch; grid-row:1/span 3">6</item>
     77 </grid>
     78 
     79 <grid title="Item 3ch col 2-3 + Item 5ch col 1-3">
     80  <item>1</item>
     81  <item>2 2</item>
     82  <item>3 3</item>
     83  <item>4</item>
     84  <item style="height:3ch; grid-row:2/span 2">5 5</item>
     85  <item style="height:5ch; grid-row:1/span 3">6</item>
     86 </grid>
     87 
     88 <grid title="Last item span 4">
     89  <item>1</item>
     90  <item>2 2</item>
     91  <item>3 3</item>
     92  <item>4</item>
     93  <item style="grid-row:span 4">5 5</item>
     94 </grid>
     95 
     96 <grid title="Last item 6ch span 4">
     97  <item>1</item>
     98  <item>2 2</item>
     99  <item>3 3</item>
    100  <item>4</item>
    101  <item style="height:6ch; grid-row:span 4">5 5</item>
    102 </grid>
    103 
    104 <grid title="Last item 6ch span 3">
    105  <item>1</item>
    106  <item>2 2</item>
    107  <item>3 3</item>
    108  <item>4</item>
    109  <item style="height:6ch; grid-row:span 3">5 5</item>
    110 </grid>
    111 </section>
    112 </body>