mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
61 lines
No EOL
1.4 KiB
HTML
61 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Regions: float overflowing its container does not interact with other line boxes
|
|
when flowed in 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 a float that overflows its container does not
|
|
interact with other line boxes when flowed in a region. In other words, floats flowed
|
|
in regions are not taken into account when laying out sibling boxes that are not
|
|
part of the same named flow." name="assert">
|
|
<link href="reference/floats-in-named-flow-016-ref.htm" rel="match">
|
|
<style>
|
|
article {
|
|
font-family: Ahem;
|
|
font-size: 20px;
|
|
line-height: 1em;
|
|
color: green;
|
|
}
|
|
.flow {
|
|
flow-into: f;
|
|
color: blue;
|
|
}
|
|
.float {
|
|
float: left;
|
|
color: green;
|
|
}
|
|
.region {
|
|
flow-from: f;
|
|
}
|
|
|
|
.region > p {
|
|
background: red;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
Test passes if you see a green square and a horizontal blue rectangle side by side;
|
|
they should have the top edges aligned and be flush to one another.<br>
|
|
You should see no red.
|
|
</p>
|
|
|
|
<div class="region">
|
|
<p> </p>
|
|
</div>
|
|
<article>
|
|
<div class="flow">
|
|
<div class="float">
|
|
xxxxx<br>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</div>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</div>
|
|
xxxxx<br>
|
|
xxxxx
|
|
</article>
|
|
|
|
</body></html> |