mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
70 lines
No EOL
1.5 KiB
HTML
70 lines
No EOL
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html><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.htm" 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> |