servo/tests/wpt/css-tests/css-regions-1_dev/html/floats-in-named-flow-015.htm

62 lines
No EOL
1.2 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Regions: painting order for floats overflowing a 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">
<meta content="ahem" name="flags">
<meta content="Test checks that the painting order for floats flowed in a
region is the same as if the floats were direct children of the region." name="assert">
<link href="reference/floats-in-named-flow-013-ref.htm" rel="match">
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: lightblue;
}
.flow {
flow-into: f;
}
.float {
float: left;
}
.region {
flow-from: f;
width: 100px;
height: 40px;
}
.region > p {
background: red;
}
.error {
color: red;
}
</style>
</head>
<body>
<p>
Test passes if you see a blue square and no red.
</p>
<div class="region">
<p>&nbsp;</p>
</div>
<article>
xxxxx<br>
xxxxx<br>
xxxxx
<div class="flow float">
xxxxx<br>
xxxxx<br>
<span class="error">
xxxxx<br>
xxxxx<br>
xxxxx
</span>
</div>
</article>
</body></html>