grid-flex-item-007.html (976B)
1 <!DOCTYPE html> 2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org"> 3 <link rel="help" 4 href="https://drafts.csswg.org/css-flexbox-1/#valdef-flex-direction-column"> 5 <link rel="help" href="https://webkit.org/b/226522"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <meta name="assert" 8 content="Column flexboxes with indefinite heights don't mess up positioning of descendant grid items."> 9 10 <style> 11 #reference-overlapped-red { 12 position: absolute; 13 background-color: red; 14 width: 100px; 15 height: 100px; 16 z-index: -1; 17 } 18 19 </style> 20 <p>Test passes if there is a filled green square and <strong>no red</strong>. 21 </p> 22 <div id=reference-overlapped-red></div> 23 24 <body style="height: 400px;"> 25 <div style="display: flex; flex-direction: column;"> 26 <div style="display: grid; align-items: center; height: 100%;"> 27 <div style="width:100px; height: 100px; background: green;"></div> 28 </div> 29 </div> 30 </body>