blob: 906913d8cbf3c842b56671c8f130eff8eacadfbe [file] [log] [blame]
<!DOCTYPE html>
<link href="resources/grid.css" rel="stylesheet">
<style>
.flex {
display: flex;
flex-direction: column;
width: 200px;
height: 200px;
border: 5px solid;
}
.flexitem {
flex: 1;
background: magenta;
}
.grid {
display: grid;
grid: 50% / 1fr;
}
.griditem {
background: cyan;
}
</style>
<p>This test checks that percentage rows are properly resolved for a grid container that is a flex item with a definite height.</p>
<p>Test passes if you see a 200x200 box with top half cyan and bottom half magenta.</p>
<div class="flex">
<div class="flexitem grid">
<div class="griditem"></div>
</div>
</div>