servo/tests/wpt/web-platform-tests/css/css-regions/floats/floats-in-named-flow-001.html

49 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Regions: float in a named flow</title>
<link rel="author" title="Mihai Balan" href="mailto:mibalan@adobe.com">
<link rel="help" href="http://www.w3.org/TR/css3-regions/#the-flow-into-property">
<meta name="flags" content="">
<meta name="assert" content="Test checks that a float in named flow contents is floated relative
to the region container and not its initial container.">
<link rel="match" href="reference/floats-in-named-flow-001-ref.html">
<style>
.flow {
flow-into: f;
text-align: right;
color: gray;
}
.float {
width: 50px;
height: 50px;
background-color: lightblue;
float: left;
}
.region {
flow-from: f;
max-width: 150px;
margin: 5px;
border: 2px solid black;
}
.region > p {
background: red;
}
</style>
</head>
<body>
<p>
Test passes if you see some filler gray text and a light blue square in the top left
corner of black-bordered rectangle.<br>
Test fails is you see any red.
</p>
<div class="flow">
<div class="float"></div>
This is filler text. This is filler text. This is filler text. This is filler text. This is filler text.
</div>
<div class="region">
<p>&nbsp;</p>
</div>
</body>
</html>