mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
64 lines
No EOL
2.1 KiB
HTML
64 lines
No EOL
2.1 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 in auto-height flexbox with flex basis</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/#propdef-break-after" rel="help" />
|
|
<link href="http://www.w3.org/TR/css-flexbox-1/#layout-algorithm" rel="help" />
|
|
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-basis" rel="help" />
|
|
<meta content="ahem" name="flags" />
|
|
<meta content="Test checks that the computed height of auto-height regions placed in a flex
|
|
container takes into the account the flex basis property. The space available inside the flex container should
|
|
be distributed according to the flex basis property. In this particular case, each of the three regions must
|
|
have a height equal to one third of the flex container's height." name="assert" />
|
|
<link href="reference/autoheight-regions-in-autoheight-flexbox-003-ref.xht" rel="match" />
|
|
<style>
|
|
.content {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
flow-into: flow;
|
|
}
|
|
|
|
.flex {
|
|
display: flex;
|
|
min-height: 120px;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.region {
|
|
flex: 1 1 33%;
|
|
flow-from: flow;
|
|
}
|
|
|
|
.break {
|
|
/* Current (Jul 2013) standard way of region breaking */
|
|
break-after: region;
|
|
/* Old, non-standard but implemented way of region breaking */
|
|
region-break-after: always;
|
|
}
|
|
|
|
.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 /><div class="break"></div>
|
|
XXXX<br /><div class="break"></div>
|
|
XXXX<br />
|
|
</div>
|
|
<div class="flex">
|
|
<div class="region"><p class="red"> </p></div>
|
|
<div class="region"> </div>
|
|
<div class="region"> </div>
|
|
</div>
|
|
|
|
|
|
</body></html> |