servo/tests/wpt/css-tests/css-regions-1_dev/xhtml1/floats-in-named-flow-013.xht

62 lines
No EOL
1.4 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: 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.xht" 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 &gt; 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>&#xA0;</p>
</div>
</div>
</body></html>