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

63 lines
No EOL
1.6 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: floats and non-floats content flowed in a shrink-to fit autosized region</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 an autosized region that has display: inline-block
is properly sized when the content flowed in it has both floats and non-floats elements." name="assert" />
<link href="reference/floats-in-named-flow-023-ref.xht" rel="match" />
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: blue;
}
.flow {
flow-into: f;
}
.float {
float: right;
color: green;
}
.region {
border: 10px solid black;
display: inline-block;
flow-from: f;
}
.region &gt; p {
background: red;
}
</style>
</head>
<body>
<p>
Test passes if you see two squares inside a black rectangular border. The left square
should be blue, the right square should be green, and the squares should be flush to one
another.<br />
You should see no red.
</p>
<div class="region">
<p>&#xA0;</p>
</div>
<article class="flow">
<span class="float">
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx
</span>
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx
</article>
</body></html>