blob: cfe429a23a7ec6dd42f18e8d8cfa59134b716921 [file] [log] [blame]
<!DOCTYPE html>
<style>
.container {
width: 300px;
font: 10px/1 Ahem;
}
.float {
float: left;
width: 100px;
height: 100px;
padding: 20px;
border: 20px solid rgba(0, 0, 0, 0);
border-radius: 30px 20px 40px 10px / 10px 40px 20px 30px;
margin: 20px;
background-color: blue;
background-clip: border-box;
-webkit-shape-outside: border-box;
}
</style>
<body>
<p>The black squares should follow the right side of the blue shape. They should not overlap the shape.</p>
<div class="container">
<div class="float"></div>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
X<br>
</div>
</body>