Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-grid/replaced-element-percentage-height-in-grid-nested-in-flex-002.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-grid-2/#grid-item-sizing"> <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> <p>Test passes if there is a filled green square.</p> <style> .flex { display: flex; flex-direction: column; height: 400px; width: 100px; } .grid { height: 100%; display: grid; grid-template-rows: 1fr 3fr; } img { height: 100%; } </style> <div class="flex"> <div class="grid"> <img src="grid-items/support/100x100-green.png"> </div> </div>
/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>