Status: PASS | Duration: 15ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/grid-items/overflow-hidden-min-content-contribution-in-abs-pos-grid-in-flexbox.html
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> <link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com"> <link rel="help" href="https://drafts.csswg.org/css-grid-2/#min-size-auto"> <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> <meta name="assert" content="block size min-content contribution is computed correctly when automatic min block size resolves to 0"> <style> .flexbox { display: flex; width: 100px; height: 100px; } .flex-item { flex-grow: 1; position: relative; } .grid { display: grid; grid-template-rows: auto 1fr; font: 100px/1 Ahem; color: green; position: absolute; top: 0; bottom: 0; } .grid-item { overflow: hidden; } </style> </head> <body> <p>Test passes if there is a filled green square.</p> <div class="flexbox"> <div class="flex-item"> <div class="grid"> <div class="grid-item"> <div>x</div> <div> </div> </div> </div> </body> </html>
/css/reference/ref-filled-green-100px-square-only.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> <p>Test passes if there is a filled green square.</p> <div style="width:100px; height:100px; background:green;"></div>