servo/tests/wpt/css-tests/css-regions-1_dev/html/floated-regions-005.htm

76 lines
No EOL
1.5 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Regions: floated and normal flow auto-sized regions</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">
<link href="http://www.w3.org/TR/css3-regions/#regions-visual-formatting-details" rel="help">
<meta content="" name="flags">
<meta content="Test checks that layout is correct when mixing floated and normal
flow auto-sized regions." name="assert">
<link href="reference/floated-regions-005-ref.htm" rel="match">
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
}
.flow {
flow-into: f;
}
.blue {
color: blue;
}
.green {
color: green;
}
.region {
flow-from: f;
}
.region p {
background: red;
}
.left {
float: left;
}
.sized {
max-height: 100px;
}
.inline-block {
display: inline-block;
}
</style>
</head>
<body>
<p>
Test passes if you two squares side by side. The left one should be green, the right one
should be blue and they should be flush to one another.<br>
You should see no red.
</p>
<div class="sized left region">
<p>&nbsp;</p>
</div>
<div class="inline-block region">
<p>&nbsp;</p>
</div>
<article class="flow">
<div class="green">
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx
</div>
<div class="blue">
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx
</div>
</article>
</body></html>