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

67 lines
No EOL
1.4 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Regions: cleared pseudo-elements (clearfix) in named flow contents</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 floats and cleared pseudoelements (clearfix)
render in regions just as they render without regions." name="assert">
<link href="reference/floats-in-named-flow-020-ref.htm" rel="match">
<style>
article {
font-family: Ahem;
font-size: 20px;
line-height: 1em;
color: green;
}
.flow {
flow-into: f;
}
.float {
float: left;
}
#float-container {
width: 100px;
border: 20px solid blue;
border-left-width: 0;
}
/* "clear-fixed" container */
#float-container::after {
content: "";
display: block;
clear: both;
}
.region {
flow-from: f;
border-left: 20px solid blue;
}
.region > p {
background: red;
}
</style>
</head>
<body>
<p>
Test passes if you see a green square with a thick blue outline.<br>
You should see no red.
</p>
<div class="region">
<p>&nbsp;</p>
</div>
<article class="flow">
<div id="float-container">
<div class="float">
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx<br>
xxxxx
</div>
</div>
</article>
</body></html>