grid-lanes-intrinsic-sizing-rows-006.html (1336B)
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 row auto-fill sizing</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-006-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 grid-template-rows: repeat(4,auto); 21 border: 1px solid; 22 padding: 0 1px 0 2px; 23 vertical-align: top; 24 } 25 </style> 26 27 <body> 28 29 <grid title="max-height 5em" 30 style="max-height:5em; grid-template-rows: repeat(auto-fill,1em);"> 31 <item>1 1</item> 32 <item>2</item> 33 <item>3</item> 34 <item>4</item> 35 <item>5 5</item> 36 </grid> 37 38 <grid title="min-height 4em" 39 style="min-height:4em; grid-template-rows: repeat(auto-fill,1em);"> 40 <item>1 1</item> 41 <item>2</item> 42 <item>3</item> 43 <item>4</item> 44 <item>5 5</item> 45 </grid> 46 47 <grid title="height 5em" 48 style="height:5em; grid-template-rows: repeat(auto-fill,1em);"> 49 <item>1 1</item> 50 <item>2</item> 51 <item>3</item> 52 <item>4</item> 53 <item>5 5</item> 54 </grid>