blob: 32a88d25a395d72a62c2f4569dca8aa748ca320c [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Test: circle shape-outside on floats</title>
<link rel="author" title="Adobe" href="http://html.adobe.com/">
<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-ellipse-000-ref.html">
<meta name="flags" content="ahem">
<style>
.container {
font: 20px/1 Ahem, sans-serif;
width: 500px;
height: 200px;
border: 1px solid black;
}
.ellipse {
width: 320px;
height: 160px;
background-color: blue;
overflow: hidden;
border-radius: 160px / 80px;
-webkit-shape-outside: ellipse(160px 80px at 160px 80px);
}
</style>
<body>
<p>The black squares should trace the right side of the ellipse's blue outline.</p>
<div class="container">
X<br/>
<div style="float: left" class="ellipse"></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 ellipse's blue outline.</p>
<div class="container" style="text-align: right">
X<br/>
<div style="float: right" class="ellipse"></div>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X<br/>
X
</div>
</body>