blob: ddcac6bb161e905b1e9295e3015011bf0ef4091d [file] [log] [blame]
<!doctype html>
<style>
#content {
-webkit-flow-into: flow1;
}
#first-box {
margin:10%;
text-align:center;
}
#second-box {
position:absolute;
top:0;
bottom:0;
width:100px;
background-color:green
}
#region1, #region2, #region3 {
border: 1px solid black;
-webkit-flow-from: flow1;
}
#region1 {
width: 200px;
height: 150px;
}
#region2 {
width: 300px;
height: 180px;
}
#region3 {
width: 120px;
height: 120px;
}
</style>
<body>
<p>The green positioned object should only be as tall as the first region it
is contained in. It should fill the right half of the first region, and no red
should be visible.</p>
<div id="content">
<div id="first-box">
<span id="second-box">
</span>
</div>
</div>
<div id="container">
<div id="region1"></div>
<div id="region2"></div>
<div id="region3"></div>
</div>