blob: fa66a4453e5515a7d9f54e1310c169e59d8c335f [file] [log] [blame]
<!DOCTYPE html>
<style>
.container {
width: 200px;
height: 100px;
font: 50px/1 Ahem, sans-serif;
background-color: red;
margin-bottom: 50px;
color: green;
}
.float-left-outer {
width: 100px;
height: 100px;
float: left;
background-color: green;
-webkit-shape-outside: inset(50% 0 0 0);
}
.float-left-inner {
margin-top: 50px;
width: 100px;
height: 50px;
float: left;
background-color: green;
-webkit-shape-outside: inset(0 100% 0 0);
}
.float-right-outer {
width: 100px;
height: 100px;
float: right;
background-color: green;
-webkit-shape-outside: inset(50% 0 0 0);
}
.float-right-inner {
margin-top: 50px;
width: 100px;
height: 50px;
float: right;
background-color: green;
-webkit-shape-outside: inset(0 0 0 100%);
}
</style>
<body>
<p>If a shape on a stacked float does not affect the line, then the line should be affected by the shape on the previous stacked float.</p>
<p>You should see two green rectanges. There should be no red.</p>
<div class="container">
<div class="float-left-inner"></div>
<div class="float-left-outer"></div>
XXXX
</div>
<div class="container" style="text-align: right">
<div class="float-right-inner"></div>
<div class="float-right-outer"></div>
XXXX
</div>
</body>