cache-miss-002.html (1152B)
1 <!DOCTYPE html> 2 <link rel="help" 3 href="https://drafts.csswg.org/css-sizing-4/#stretch-fit-sizing"> 4 <link rel="help" href="https://crbug.com/386052671"> 5 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 6 <meta name="assert" content="Height change caused by 2-pass flex layout affects stretched-height descendant."> 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 18 <p>Test passes if there is a filled green square and <strong>no red</strong>. 19 </p> 20 <div id="reference-overlapped-red"></div> 21 22 <div style="width: 100px; height: 100px; display: flex; flex-direction: column;"> 23 <main style="flex-basis: 0px; flex-grow: 1; width: -webkit-fill-available;"> 24 <div style="height: 100%; position: relative;"> 25 <div style="position: absolute; inset: 0px;"> 26 <div style="height: -webkit-fill-available; background: green; color: green; overflow-y: auto;"> 27 <div>Content</div> 28 </div> 29 </div> 30 </div> 31 </main> 32 </div>