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

87 lines
No EOL
2.1 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: margins around float and non-float content</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 margins do not collapse for content flowed
inside a region, both for float and non-float contents." name="assert" />
<link href="reference/floats-in-named-flow-031-ref.xht" rel="match" />
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
}
.flow {
flow-into: f;
}
.float {
float: left;
color: blue;
margin: 1em 2em 3em 4em;
}
.outer-container {
display: inline-block;
border: 10px solid black;
}
.regions-container {
margin: 20px 15px 10px 5px;
}
.content {
margin: 2px 4px 8px 16px;
color: green;
}
.region {
flow-from: f;
}
.region &gt; p {
background: red;
}
</style>
</head>
<body>
<p>
<!-- TODO Determine what the outcome should be - currently expecting a resolution on
the issue on www-style/css3-break -->
Test passes if you see two colored squares inside a black-bordered rectangle.<br />
The first (top to bottom) square should be blue, while the second should be green.<br />
The blue square should be roughly horizontally centered and the green square should be
near the bottom left corner of the rectangle. Neither square should touch the black border.<br />
You should see no red.
</p>
<div class="outer-container">
<div class="regions-container">
<div class="region">
<p>&#xA0;</p>
</div>
</div>
</div>
<article class="flow">
<div class="float">
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx
</div>
<div class="content">
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx<br />
xxxxx
</div>
</article>
</body></html>