mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
61 lines
1.8 KiB
HTML
61 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 inside 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 using the flex-basis property sizes the flex items to a percentage of
|
|
the flex container's height when said items are auto-height regions. The last region, the outside the flex
|
|
container should not be visible." name="assert" />
|
|
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-007-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;
|
|
justify-content: space-around;
|
|
height: 200px;
|
|
width: 80px;
|
|
}
|
|
|
|
.region {
|
|
flex-basis: 10%;
|
|
flow-from: flow;
|
|
}
|
|
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ul>
|
|
<li>Test passes if you see you three identical green stripes.</li>
|
|
<li>You shouldn't see any red.</li>
|
|
</ul>
|
|
<div class="content">
|
|
XXXX<br />
|
|
XXXX<br />
|
|
XXXX<br />
|
|
XXXX
|
|
</div>
|
|
<div class="flex">
|
|
<div class="region"></div>
|
|
<div class="region"></div>
|
|
<div class="region"></div>
|
|
</div>
|
|
<div class="region"><p class="red"> </p></div>
|
|
|
|
|
|
</body></html> |