mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
60 lines
No EOL
1.7 KiB
HTML
60 lines
No EOL
1.7 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<!--
|
|
Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
--><html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Test: Ensure that min-height is honored for vertical multi-line flex containers</title>
|
|
<link href="mailto:dholbert@mozilla.com" rel="author" title="Daniel Holbert" />
|
|
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-wrap-property" rel="help" />
|
|
<link href="reference/flexbox-flex-wrap-vert-002-ref.xht" rel="match" />
|
|
<meta charset="utf-8" />
|
|
<style>
|
|
div.flexbox {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-wrap: wrap;
|
|
border: 1px dashed black;
|
|
width: 12px;
|
|
min-height: 100px;
|
|
margin-right: 2px;
|
|
float: left;
|
|
}
|
|
div.smallItem {
|
|
height: 30px;
|
|
border: 1px solid blue;
|
|
background: lightblue;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- No flex items -->
|
|
<div class="flexbox">
|
|
</div>
|
|
|
|
<!-- Single small flex item -->
|
|
<div class="flexbox">
|
|
<div class="smallItem"></div>
|
|
</div>
|
|
|
|
<!-- Multiple flex items, larger than flex container's min-size: -->
|
|
<div class="flexbox">
|
|
<div class="smallItem"></div>
|
|
<div class="smallItem"></div>
|
|
<div class="smallItem"></div>
|
|
<div class="smallItem"></div>
|
|
<div class="smallItem"></div>
|
|
</div>
|
|
|
|
<!--- ...and now with flex container constrained by both min and max-size -->
|
|
<div style="max-height: 120px" class="flexbox">
|
|
<div class="smallItem"></div>
|
|
<div class="smallItem"></div>
|
|
<div class="smallItem"></div>
|
|
<div class="smallItem"></div>
|
|
<div class="smallItem"></div>
|
|
</div>
|
|
|
|
|
|
|
|
</body></html> |