Files
servo/tests/wpt/css-tests/css-regions-1_dev/xhtml1print/floated-regions-001.xht

89 lines
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: multiple auto-sized floated 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 multiple regions that are auto-sized and floated
are sized according to the auto-size algorithm but also respect the floats sizing model.
They should also be properly floated relative to their corresponding block formatting
context." name="assert" />
<link href="reference/floated-regions-001-ref.xht" rel="match" />
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
}
.flow {
flow-into: f;
}
.blue {
color: blue;
border-color: blue;
}
.green {
color: green;
border-color: green;
}
.break {
break-before: region;
}
#region-container {
border: 10px solid black;
overflow: hidden;
}
.region {
flow-from: f;
}
.region p {
background: red;
}
.right {
border-left-width: 20px;
border-left-style: solid;
float: right;
}
.left {
border-right-width: 20px;
border-right-style: solid;
float: left;
}
</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 id="region-container">
<div class="region right blue">
<p>&#xA0;</p>
</div>
<div class="region left green">
<p>&#xA0;</p>
</div>
</div>
<article class="flow">
<div class="blue">
xxxx<br />
xxxx<br />
xxxx<br />
xxxx<br />
xxxx
</div>
<div class="green break">
xxxx<br />
xxxx<br />
xxxx<br />
xxxx<br />
xxxx
</div>
</article>
</body></html>