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="
The `height` property is not set to a percentage. Therefore, the quirk doesn't apply,
the containing block is not modified, and `min-height` is not affected.
">
<style>
#grandparent { height: 200px; width: 200px; background: green }
#target { height: 0px; min-height: 100%; background: red }
</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>