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

61 lines
No EOL
1.2 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Regions: floated region with multiple floated siblings</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="" name="flags">
<meta content="Test checks that a floated region behaves as a regular float
when it has multiple floated siblings, before and after it." name="assert">
<link href="reference/floated-regions-002-ref.htm" rel="match">
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: green;
}
.flow {
flow-into: f;
}
.region {
flow-from: f;
background: red;
}
.region p {
background: red;
}
.float {
float: left;
width: 100px;
height: 100px;
margin-right: 10px;
}
.green {
background: green;
}
</style>
</head>
<body>
<p>
Test passes if you see four regularly spaced green squares.<br>
You should see no red.
</p>
<div class="float green"></div>
<div class="float green"></div>
<div class="region float"></div>
<div class="float green"></div>
<article class="flow">
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx
</article>
</body></html>