mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
67 lines
No EOL
1.5 KiB
HTML
67 lines
No EOL
1.5 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: 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.xht" 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> </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> |