blob: 5dd70257c9225460c96aed231f38610227d5e66d [file] [log] [blame]
<!DOCTYPE html>
<title>shape-outside-floats-rounded-rectangle-002.html</title>
<link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com">
<link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property">
<link rel="match" href="shape-outside-floats-rounded-rectangle-002-ref.html">
<meta name="flags" content="ahem">
<style>
.container {
font: 20px/1 Ahem, sans-serif;
line-height: 20px;
width: 500px;
height: 200px;
border: 1px solid black;
}
.rounded-rect-circle {
width: 160px;
height: 160px;
border: 1px solid blue;
border-radius: 80px;
-webkit-shape-outside: rectangle(0px, 0px, 160px, 160px, 80px, 80px); /* x,y,width,height,rx,ry */
}
</style>
<body>
<p>The black squares should trace the right side of the circle's blue outline.</p>
<div class="container">
X<br/>
<div style="float: left" class="rounded-rect-circle"></div>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X
</div>
<p>The black squares should trace the left side of the circle's blue outline.</p>
<div class="container" style="text-align: right">
X<br/>
<div style="float: right" class="rounded-rect-circle"></div>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X
</div>
</body>