blob: 526c869c0c51300ddb2b933e09846c86c85df337 [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;
shape-outside: inset(50% 0 0 0);
}
.float-left-inner {
margin-top: 50px;
width: 100px;
height: 50px;
float: left;
background-color: green;
shape-outside: inset(0 100% 0 0);
}
.float-right-outer {
width: 100px;
height: 100px;
float: right;
background-color: green;
shape-outside: inset(50% 0 0 0);
}
.float-right-inner {
margin-top: 50px;
width: 100px;
height: 50px;
float: right;
background-color: green;
shape-outside: inset(0 0 0 100%);
}
</style>
<script src="../../../resources/ahem.js"></script>
<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>