Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-flexbox/flexbox-flex-direction-column-percentage-ignored.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Flexbox: height of a child of a flexbox with flex-direction: column</title>
<link rel="match" href="reference/flexbox-flex-direction-column-percentage-ignored-ref.html">
<meta name="assert" content="This test ensures that the percentage height of child of a flexbox with 'flex-direction: column' and no explicit height but with max-height set should be treated as 'auto'.">
<link href="support/flexbox.css" rel="stylesheet">
<style>
.flexbox {
max-height: 10px;
overflow: hidden;
}
</style>
<div class="flexbox column">
<div style="height: 1%">
The height here should be ignored.
</div>
</div>