grid-lanes-intrinsic-sizing-rows-001-auto.html (2494B)
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 - intrinsic</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-001-auto-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 26 item { 27 /* smaller heights to fit into 800x600 */ 28 writing-mode: vertical-rl; 29 text-orientation: sideways; 30 } 31 </style> 32 33 <body> 34 35 <section> 36 <grid title="Wider 1st item 2ch"> 37 <item style="height:2ch">1</item> 38 <item>2</item> 39 <item>3</item> 40 <item>4</item> 41 <item>5</item> 42 </grid> 43 44 <grid title="Wider 5th item 2ch"> 45 <item>1</item> 46 <item>2</item> 47 <item>3</item> 48 <item>4</item> 49 <item style="height:2ch">5</item> 50 </grid> 51 52 <grid title="Wider 5th item 2ch in col 2"> 53 <item>1</item> 54 <item>2</item> 55 <item>3</item> 56 <item>4</item> 57 <item style="height:2ch; grid-row:2">5</item> 58 </grid> 59 60 <grid title="Wider 5th item 4ch in col 2-3"> 61 <item>1</item> 62 <item>2</item> 63 <item>3</item> 64 <item>4</item> 65 <item style="height:4ch; grid-row:2/span 2">5</item> 66 </grid> 67 68 <grid title="5th item in col 2-3, wider 6th item 5ch in col 1-3"> 69 <item>1</item> 70 <item>2</item> 71 <item>3</item> 72 <item>4</item> 73 <item style="grid-row:2/span 2">5</item> 74 <item style="height:5ch; grid-row:span 3/4">6</item> 75 </grid> 76 77 <grid title="5th item 3ch in 2-3, 6th item 5ch in 1-3"> 78 <item>1</item> 79 <item>2</item> 80 <item>3</item> 81 <item>4</item> 82 <item style="height:3ch; grid-row:span 2/4">5</item> 83 <item style="height:5ch; grid-row:1/span 3">6</item> 84 </grid> 85 86 <grid title="5th item span 4"> 87 <item>1</item> 88 <item>2</item> 89 <item>3</item> 90 <item>4</item> 91 <item style="grid-row:span 4">5</item> 92 </grid> 93 94 <grid title="5th item 6ch span 4"> 95 <item>1</item> 96 <item>2</item> 97 <item>3</item> 98 <item>4</item> 99 <item style="height:6ch; grid-row:span 4">5</item> 100 </grid> 101 102 <grid title="5th item 6ch span 3"> 103 <item>1</item> 104 <item>2</item> 105 <item>3</item> 106 <item>4</item> 107 <item style="height:6ch; grid-row:span 3">5</item> 108 </grid> 109 </section> 110 </body>