blob: 92335546abb39d141a1a39151365e017249af35b [file] [log] [blame]
<!DOCTYPE html>
<html>
<style>
.container {
font: 20px/1 Ahem, sans-serif;
width: 500px;
height: 200px;
border: 1px solid black;
}
.rounded-rect {
width: 320px;
height: 160px;
background-color: blue;
border-radius: 200px;
-webkit-shape-outside: inset(0px round 200px);
}
</style>
<body>
<div class="container" style="text-align: right">
X&nbsp;<br/>
<div style="float: right" class="rounded-rect"></div>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;<br/>
X&nbsp;
</div>
<p>Requires Ahem font. There is a 0px size inset applied on the right float with 200px radius.<br>
The black squares should trace the left side of the rounded rectangle's blue outline.</p>
<p>Bug <a href="http://webkit.org/b/129726">129726</a>: [CSS Shapes] inset does not properly clamp large corner radii</p>
</body>