Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<title>margin-trim: flex-column-grow</title>
<link rel="author" href="mailto:sammy.gill@apple.com">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="items should grow to take up the space made available by trimming margins">
<style>
flexbox {
display: flex;
width: min-content;
height: 100px;
flex-direction: column;
margin-trim: block;
}
item {
display: block;
width: 100px;
height: 50px;
margin-block: 25px;
flex: 1 0 auto;
background-color: green;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square.</p>
<flexbox>
<item></item>
</flexbox>
</body>
</html>