Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!-- quirks -->
<title>Percentage height quirk with min-height</title>
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
<link rel="match" href="../css/reference/ref-filled-green-200px-square.html">
<meta name="assert" content="
Due to the quirk, #target resolves is size using #grandparent as the containing block.
Therefore, this also affects the percentage in `min-height`.
">
<style>
#grandparent { height: 200px; width: 200px }
#parent { background: red }
#target { height: 0%; min-height: 100%; background: green }
</style>
<div style="margin: 1em 0">
Test passes if there is a filled green square and <strong>no red</strong>.
</div>
<div id="grandparent">
<div id="parent">
<div id="target"></div>
</div>
</div>