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

72 lines
No EOL
1.6 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Regions: named flow contains a nested floated 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">
<link href="http://www.w3.org/TR/css3-regions/#regions-visual-formatting-details" rel="help">
<meta content="" name="flags">
<meta content="Test checks that a named flow that contains a nested floated
auto-sized region is formatted according to the visual formatting model." name="assert">
<link href="reference/floated-regions-004-ref.htm" rel="match">
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
}
.flow {
flow-into: f;
color: green;
}
.inner-flow {
flow-into: g;
color: blue;
}
.region {
flow-from: f;
border: 10px solid black;
}
.inner-region {
flow-from: g;
}
.region p,
.inner-region p {
background: red;
}
.float {
float: right;
}
</style>
</head>
<body>
<p>
Test passes if you see a horizontal, black-bordered rectangle with a green square at its
left end and a blue square at its right end. The rectangle should be approximately as
wide as the page.<br>
You should see no red.
</p>
<div class="region"></div>
<article class="flow">
<div class="float inner-region">
<p>&nbsp;</p>
</div>
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx
</article>
<article class="inner-flow">
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx
</article>
</body></html>