mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
50 lines
No EOL
1.4 KiB
HTML
50 lines
No EOL
1.4 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: flowing auto-height flexbox elements in region</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/css-flexbox-1/#layout-algorithm" rel="help" />
|
|
<meta content="ahem" name="flags" />
|
|
<meta content="Test that a flex container with auto height is flowed correctly inside a region
|
|
with auto height. The region should fit the flexbox." name="assert" />
|
|
<link href="reference/regions-flexbox-002-ref.xht" rel="match" />
|
|
<style>
|
|
.flex {
|
|
display: flex;
|
|
flow-into: flow;
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
}
|
|
|
|
.region {
|
|
width: 100px;
|
|
padding: 10px;
|
|
background-color: gray;
|
|
flow-from: flow;
|
|
}
|
|
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ul>
|
|
<li>Test passes if you see a green square inside a gray rectangle.</li>
|
|
<li>You shouldn't see any red.</li>
|
|
</ul>
|
|
<div class="flex">
|
|
XXXXX<br />
|
|
XXXXX<br />
|
|
XXXXX<br />
|
|
XXXXX<br />
|
|
XXXXX
|
|
</div>
|
|
<div class="region">
|
|
<p class="red"> </p>
|
|
</div>
|
|
|
|
|
|
</body></html> |