mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
45 lines
No EOL
1.2 KiB
HTML
45 lines
No EOL
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: fixed height flexbox inside auto height 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/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="Test that flowing a flex container inside a region with auto-height will enlarge
|
|
the region to fit the content." name="assert">
|
|
<link href="reference/autoheight-flexbox-001-ref.htm" rel="match">
|
|
<style>
|
|
.flex {
|
|
display: flex;
|
|
height: 100px;
|
|
width: 100px;
|
|
background-color: green;
|
|
flow-into: flow;
|
|
}
|
|
|
|
.region {
|
|
width: 100px;
|
|
background-color: gray;
|
|
padding: 10px;
|
|
flow-from: flow;
|
|
}
|
|
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<ul>
|
|
<li>Test passes if you see a green square inside a gray square.</li>
|
|
<li>You shouldn't see any red.</li>
|
|
</ul>
|
|
<div class="flex">
|
|
</div>
|
|
<div class="region">
|
|
<p class="red"> </p>
|
|
</div>
|
|
|
|
|
|
</body></html> |