mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
62 lines
No EOL
1.4 KiB
HTML
62 lines
No EOL
1.4 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: regions wholly contain floates flowed in them</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 regions create new block formatting contexts
|
|
that wholly contain the floats flowed in them." name="assert" />
|
|
<link href="reference/floats-in-named-flow-013-ref.xht" rel="match" />
|
|
<style>
|
|
article {
|
|
color: gray;
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
}
|
|
.flow {
|
|
flow-into: f;
|
|
}
|
|
.float {
|
|
color: lightblue;
|
|
float: left;
|
|
}
|
|
.region-parent {
|
|
background-color: red;
|
|
width: 100px;
|
|
}
|
|
.region {
|
|
flow-from: f;
|
|
border-right: 20px solid lightblue;
|
|
}
|
|
|
|
.region > p {
|
|
background: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Test passes if you see a blue square and no red.
|
|
</p>
|
|
|
|
<article>
|
|
<div class="flow float">
|
|
<div>
|
|
xxxx<br />
|
|
xxxx<br />
|
|
xxxx<br />
|
|
xxxx<br />
|
|
xxxx
|
|
</div>
|
|
</div>
|
|
</article>
|
|
|
|
<div class="region-parent">
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body></html> |