blob: 7bcfe815fc8b04e43698bd647179b06aae1cc793 [file] [log] [blame]
<!doctype html>
<style>
#content {
-webkit-flow-into: flow1;
padding: 5px;
border: 1px solid red;
}
#float1 {
float: left;
width: 150px;
height: 100px;
background-color:green
}
#float2 {
float:right;
width:200px;
height:30px;
background-color:orange;
}
#region1, #region2, #region3 {
margin: 10px;
border: 1px solid black;
-webkit-flow-from: flow1;
}
#region1 {
margin-left: 30px;
width: 180px;
height: 90px;
}
#region2 {
margin-top: 80px;
width: 400px;
height: 90px;
}
</style>
<p>In the example below, the green float should be at the top of the first region and on the left. It should overflow the first region.
The orange float should be right aligned under the green float and should overflow the first region because their containing block (red border) is flowed only in the first region.</p>
<p>No content should be displayed in the second region.</p>
<div id="content">
<div id="first-box">
<div id="second-box">
<img id="float1"><img id="float2">
</div>
</div>
</div>
<div id="container">
<div id="region1"></div>
<div id="region2"></div>
</div>