<html>
<head>
<meta charset="utf-8">
<title>Test: Percent height quirk does not traverse flex/grid containers</title>
<link rel="author" title="Daniel Holbert" href="mailto:[email protected]">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="help" href="https://quirks.spec.whatwg.org/#the-percentage-height-calculation-quirk">
<link rel="match" href="reference/percentage-height-quirk-excludes-flex-grid-001-ref.html">
<meta name="assert" content="This quirk is specific to block boxes and table wrapper boxes; if it hits another type of box, it doesn't traverse further. So this file should look the same whether in quirks or standards mode.">
<style>
.fixed-height-outer {
height: 80px;
border: 1px solid gray;
margin-bottom: 5px;
}
.row-flex {
display: flex;
flex-direction: row
}
.column-flex {
display: flex;
flex-direction: column
}
.grid {
display: grid;
}
.container {
border: 3px solid black;
}
.pct {
height: 75%;
min-height: 10px;
width: 50px;
display: inline-block;
vertical-align: top;
background: purple;
}
.px {
height: 50px;
width: 50px;
display: inline-block;
vertical-align: top;
background: blue
}
</style>
</head>
<body>
<div class="fixed-height-outer">
<div class="container column-flex">
<div>
<div class="pct"></div>
<div class="px"></div>
</div>
</div>
</div>
<div class="fixed-height-outer">
<div class="container row-flex">
<div>
<div class="pct"></div>
<div class="px"></div>
</div>
</div>
</div>
<div class="fixed-height-outer">
<div class="container grid">
<div>
<div class="pct"></div>
<div class="px"></div>
</div>
</div>
</div>
</body>
</html>