servo/tests/wpt/web-platform-tests/css/css-regions/floats/floats-in-named-flow-027.html

71 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Regions: floats outside of the region</title>
<link rel="author" title="Mihai Balan" href="mailto:mibalan@adobe.com">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<meta name="flags" content="ahem">
<meta name="assert" content="Test checks that floats outside of the region do not interact
with the line boxes of the content flowed in regions. This is the effect of the fact
that regions are block formatting contexts.">
<link rel="match" href="reference/floats-in-named-flow-027-ref.html">
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
width: 240px;
background: red;
}
.flow {
flow-into: f;
color: blue;
margin-left: 120px;
border: 10px solid lightblue;
}
.float {
float: left;
color: green;
border: 10px solid lightgreen;
}
.region {
width: 240px;
flow-from: f;
}
.region > p {
background: red;
}
</style>
</head>
<body>
<p>
Test passes if you see two squares flush side by side.<br>
The left square should be green with a light green border and the right one should be
blue with a light blue border.<br>
You should see no red.
</p>
<article>
<div class="float">
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx
</div>
<div class="region">
<p>&nbsp;</p>
</div>
<div class="flow">
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx
</div>
</article>
</body>
</html>