mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
71 lines
No EOL
1.7 KiB
HTML
71 lines
No EOL
1.7 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: floats outside of the region</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 outside of the region do not interact
|
|
with the line boxes of the content flowed in regions. This is the effect of the fact
|
|
that regions are block formatting contexts." name="assert" />
|
|
<link href="reference/floats-in-named-flow-027-ref.xht" rel="match" />
|
|
<style>
|
|
article {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
width: 240px;
|
|
background: red;
|
|
}
|
|
.flow {
|
|
flow-into: f;
|
|
color: blue;
|
|
margin-left: 120px;
|
|
border: 10px solid lightblue;
|
|
}
|
|
|
|
.float {
|
|
float: left;
|
|
color: green;
|
|
border: 10px solid lightgreen;
|
|
}
|
|
|
|
.region {
|
|
width: 240px;
|
|
flow-from: f;
|
|
}
|
|
|
|
.region > p {
|
|
background: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Test passes if you see two squares flush side by side.<br />
|
|
The left square should be green with a light green border and the right one should be
|
|
blue with a light blue border.<br />
|
|
You should see no red.
|
|
</p>
|
|
|
|
<article>
|
|
<div class="float">
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx
|
|
</div>
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
<div class="flow">
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx<br />
|
|
xxxxx
|
|
</div>
|
|
</article>
|
|
|
|
|
|
</body></html> |