servo/tests/wpt/css-tests/css-flexbox-1_dev/xhtml1print/autoheight-regions-in-autoheight-flexbox-004.xht

71 lines
No EOL
1.9 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: nested regions in flexbox</title>
<link href="mailto:badea@adobe.com" rel="author" title="Catalin Badea" />
<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" />
<link href="http://www.w3.org/TR/css-flexbox-1/#flex-direction" rel="help" />
<meta content="ahem" name="flags" />
<meta content="Test checks that nested regions placed in flex containers
are laid out properly. The first flow (blue content) is nested inside the second flow (green content). The user
should see three horizontal stripes with the following colors: green, blue, green." name="assert" />
<link href="reference/autoheight-regions-in-autoheight-flexbox-004-ref.xht" rel="match" />
<style>
.c1, .c2 {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
}
.c1 {
color: blue;
flow-into: f1;
margin-top: 20px;
margin-bottom: 20px;
}
.c2 {
color: green;
flow-into: f2;
}
.flex {
display: flex;
flex-direction: column;
}
.r1 {
flow-from: f1;
}
.r2 {
flow-from: f2;
}
.red {
background-color: red;
}
</style>
</head>
<body>
<ul>
<li>Test passes if you see a column of three horizontal stripes with colors in the following order:
green, blue, green.</li>
<li>You shouldn't see any red.</li>
</ul>
<div class="c1">
XXX
</div>
<div class="c2">
<div class="flex">
XXX
<div class="r1"></div>
</div>
XXX
</div>
<div class="flex">
<div class="r2"><p class="red">&#xA0;</p></div>
</div>
</body></html>