grid-item-non-auto-height-stretch-002.html (623B)
1 <!doctype html> 2 <title>Grid items only stretch if block-size computes to auto</title> 3 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/4525"> 4 <link rel="help" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez"> 5 <link rel="help" href="https://mozilla.org" title="Mozilla"> 6 <link rel="match" href="grid-item-non-auto-height-stretch-ref.html"> 7 <style> 8 #grid { 9 writing-mode: vertical-lr; 10 display: grid; 11 width: 100px; 12 height: 100px; 13 grid-template: 100% / 100%; 14 background: green; 15 } 16 #item { 17 width: max-content; 18 background: red; 19 } 20 </style> 21 <div id="grid"> 22 <div id="item"></div> 23 </div>