51 lines
1.0 KiB
HTML
51 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<style>
|
|
.container {
|
|
width: 300px;
|
|
font: 10px/1 Ahem;
|
|
-webkit-writing-mode: vertical-lr;
|
|
}
|
|
.float {
|
|
float: left;
|
|
width: 100px;
|
|
height: 200px;
|
|
padding: 20px;
|
|
border: 20px solid rgba(0, 0, 0, 0);
|
|
border-radius: 70px 60px 80px 50px / 50px 80px 60px 70px;
|
|
margin: 20px;
|
|
background-color: blue;
|
|
background-clip: content-box;
|
|
-webkit-shape-outside: content-box;
|
|
}
|
|
</style>
|
|
<body>
|
|
<p>The black squares should follow the bottom 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>
|