blob: 9a6e6d6d7364485f339ada7de7e205cb830fa8ea [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Test: inset rectangle shape-outside on floats</title>
<link rel="author" title="Bem Jones-Bey" href="mailto:bjonesbe@adobe.com">
<link rel="help" href="http://dev.w3.org/csswg/css-shapes-1/#shape-outside-property">
<link rel="match" href="shape-outside-floats-inset-rectangle-001-ref.html">
<meta name="flags" content="ahem">
<style>
.container {
font: 20px/1 Ahem, sans-serif;
width: 500px;
height: 200px;
border: 1px solid black;
}
.rounded-rect {
width: 320px;
height: 160px;
border: 1px solid blue;
border-radius: 60px;
-webkit-shape-outside: inset-rectangle(0px, 0px, 0px, 0px, 60px, 60px); /* top,right,bottom,left,rx,ry */
}
</style>
<body>
<p>The black squares should trace the right side of the rounded rectangle's blue outline.</p>
<div class="container">
X<br/>
<div style="float: left" class="rounded-rect"></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 rounded rectangle's blue outline.</p>
<div class="container" style="text-align: right">
X<br/>
<div style="float: right" class="rounded-rect"></div>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X
</div>
</body>