mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
55 lines
No EOL
1.3 KiB
HTML
55 lines
No EOL
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: fixed sized region inside an auto height flexbox</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 content is flowed in a region placed inside a flexbox with auto-height." name="assert">
|
|
<link href="reference/regions-flexbox-002-ref.htm" rel="match">
|
|
<style>
|
|
.content {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
flow-into: flow;
|
|
}
|
|
.region {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: red;
|
|
flow-from: flow;
|
|
}
|
|
.flex {
|
|
display: flex;
|
|
width: 150px;
|
|
background-color: gray;
|
|
}
|
|
|
|
.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="content">
|
|
XXXXX<br>
|
|
XXXXX<br>
|
|
XXXXX<br>
|
|
XXXXX<br>
|
|
XXXXX
|
|
</div>
|
|
<div class="flex">
|
|
<div class="region">
|
|
<p class="red"> </p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body></html> |