empty-grid-within-flexbox.html (907B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: Sizing of an empty grid within a flexbox</title> 4 <link rel="author" title="Ethan Jimenez" href="mailto:ethavar@microsoft.com"/> 5 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1246609"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <meta name="assert" content="Checks that the intrinsic sizes of an empty grid are correctly computed."> 8 <style> 9 .flex { 10 display: flex; 11 width: 100px; 12 height: 100px; 13 background-color: red; 14 } 15 16 .flex-item { 17 width: 50px; 18 background-color: green; 19 } 20 21 .empty-grid { 22 display: grid; 23 grid-gap: 50px; 24 } 25 </style> 26 27 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 28 29 <div class="flex"> 30 <div class="flex-item"></div> 31 <div class="empty-grid"></div> 32 <div class="flex-item"></div> 33 </div>