grid-flex-item-006.html (808B)
1 <!DOCTYPE html> 2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org"> 3 <link rel="help" href="https://crbug.com/1102183"> 4 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-main-item" title="Part E"> 5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 6 <meta name="assert" content="used flex base size includes percent padding on grid items."> 7 8 <style> 9 #reference-overlapped-red { 10 position: absolute; 11 background-color: red; 12 width: 100px; 13 height: 100px; 14 z-index: -1; 15 } 16 </style> 17 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 18 <div id=reference-overlapped-red></div> 19 20 <div style="display: flex; width: 100px;"> 21 <div style="display: grid; padding-right: 100%; height: 100px; background: green;"></div> 22 </div>