servo/tests/wpt/css-tests/css-regions-1_dev/html/regions-flexbox-002.htm

50 lines
No EOL
1.2 KiB
HTML

<!DOCTYPE html>
<html><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/#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/#flex-containers" rel="help">
<meta content="ahem" name="flags">
<meta content="Test that flex containers with auto height are flowed inside a namedflow." name="assert">
<link href="reference/regions-flexbox-001-ref.htm" rel="match">
<style>
.flex {
display: flex;
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: green;
flow-into: flow;
}
.region {
height: 150px;
width: 200px;
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">&nbsp;</p>
</div>
</body></html>