servo/tests/wpt/css-tests/css-regions-1_dev/html/floats-in-named-flow-013.htm

62 lines
No EOL
1.2 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Regions: regions wholly contain floates flowed in them</title>
<link href="mailto:mibalan@adobe.com" rel="author" title="Mihai Balan">
<link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help">
<meta content="ahem" name="flags">
<meta content="Test checks that regions create new block formatting contexts
that wholly contain the floats flowed in them." name="assert">
<link href="reference/floats-in-named-flow-013-ref.htm" rel="match">
<style>
article {
color: gray;
font-family: Ahem;
font-size: 20px;
line-height: 1em;
}
.flow {
flow-into: f;
}
.float {
color: lightblue;
float: left;
}
.region-parent {
background-color: red;
width: 100px;
}
.region {
flow-from: f;
border-right: 20px solid lightblue;
}
.region > p {
background: red;
}
</style>
</head>
<body>
<p>
Test passes if you see a blue square and no red.
</p>
<article>
<div class="flow float">
<div>
xxxx<br>
xxxx<br>
xxxx<br>
xxxx<br>
xxxx
</div>
</div>
</article>
<div class="region-parent">
<div class="region">
<p>&nbsp;</p>
</div>
</div>
</body></html>