Files
servo/tests/wpt/css-tests/css-flexbox-1_dev/html/autoheight-regions-in-fixed-sized-flexbox-001.htm

89 lines
2.4 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Regions: Auto-height regions inside fixed sized flexbox</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/#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/#layout-algorithm" rel="help">
<link href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-grow" rel="help">
<meta content="ahem" name="flags">
<meta content="Test checks that auto-height regions respect the flex grow property when placed
inside a fixed sized flexbox with a single row." name="assert">
<link href="reference/autoheight-regions-in-fixed-sized-flexbox-001-ref.htm" rel="match">
<style>
.content1, .content2 {
font-family: Ahem;
line-height: 1em;
font-size: 20px;
}
.content1 {
color: green;
flow-into: flow1;
}
.content2 {
color: blue;
flow-into: flow2;
}
#fixed {
height: 200px;
width: 100px;
background-color: blue;
}
.flex {
display: flex;
height: 200px;
width: 500px;
}
.fromFlow1 {
flow-from: flow1;
flex-grow: 0;
}
.fromFlow2 {
flow-from: flow2;
flex-grow: 1;
}
.red {
background-color: red;
}
</style>
</head>
<body>
<ul>
<li>Test passes if you can see two squares placed on the same horizontal line. Each square consists of two
vertical halves. The left square has the left half colored green and the right half colored blue.
The right square has left half colored blue and the right half colored green.</li>
<li>You shouldn't see any red.</li>
</ul>
<div class="content1">
XXXXX<br>XXXXX<br>XXXXX<br>XXXXX<br>
XXXXX<br>XXXXX<br>XXXXX<br>XXXXX<br>
XXXXX<br>XXXXX<br>XXXXX<br>XXXXX<br>
XXXXX<br>XXXXX<br>XXXXX<br>XXXXX<br>
XXXXX<br>XXXXX<br>XXXXX<br>XXXXX<br>
</div>
<div class="content2">
XXXXX<br>XXXXX<br>XXXXX<br>XXXXX<br>
XXXXX<br>XXXXX<br>XXXXX<br>XXXXX<br>
XXXXX<br>XXXXX<br>
</div>
<div class="flex">
<div class="fromFlow1">
</div>
<div class="fromFlow2">
</div>
<div id="fixed">
</div>
<div class="fromFlow1">
<p class="red">&nbsp;</p>
</div>
</div>
</body></html>