mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
59 lines
1.8 KiB
HTML
59 lines
1.8 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
|
<title>CSS Regions: auto-height regions with max height in fixed sized flexbox</title>
|
|
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
|
|
<link href="http://www.w3.org/TR/css3-regions/#rfcb-flow-fragment-height-resolution" rel="help" />
|
|
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help" />
|
|
<link href="http://www.w3.org/TR/css3-regions/#flow-from" rel="help" />
|
|
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
|
<meta content="ahem" name="flags" />
|
|
<meta content="Test that the max-height property is applied to regions placed inside a fixed
|
|
sized flexbox with a column flow. The flex container should not flex the region flex items beyond their
|
|
max height value." name="assert" />
|
|
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-008-ref.xht" rel="match" />
|
|
<style>
|
|
.content {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
flow-into: flow;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 200px;
|
|
width: 100px;
|
|
}
|
|
|
|
.region {
|
|
max-height: 20px;
|
|
flex: auto;
|
|
flow-from: flow;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ul>
|
|
<li>Test passes if you see three horizontal green stripes.</li>
|
|
<li>You shouldn't see any red.</li>
|
|
</ul>
|
|
<div class="content">
|
|
XXXX<br />
|
|
XXXX<br />
|
|
XXXX
|
|
</div>
|
|
<div class="flex">
|
|
<div class="region"></div>
|
|
<div class="region"></div>
|
|
<div class="region"><p class="red"> </p></div>
|
|
</div>
|
|
|
|
|
|
</body></html> |