blob: 04fd6957610253141124e1862a3766fe4f512445 [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Test: rounded rectangle shape-outside on floats with clamped radii values</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://www.w3.org/TR/css-shapes-1/#shape-outside-property">
<link rel="match" href="shape-outside-floats-rounded-rectangle-004-ref.html">
<meta name="flags" content="ahem">
<style>
.container {
font: 20px/1 Ahem, sans-serif;
line-height: 20px;
width: 160px;
height: 80px;
margin: 5px;
}
.float {
float: left;
width: 80px;
height: 80px;
border: 1px solid blue;
border-radius: 50%;
}
.fixed-units {
-webkit-shape-outside: rectangle(0px, 0px, 80px, 80px, 80px, 80px);
}
.different-units {
-webkit-shape-outside: rectangle(0px, 0px, 80px, 80px, 100%, 100%);
}
.relative-units {
-webkit-shape-outside: rectangle(0px, 0px, 100%, 100%, 700em, 700em);
}
.edge-case {
-webkit-shape-outside: rectangle(0px, 0px, 100%, 100%, 50%, 50%);
}
</style>
<body>
<div class="container">
<div class="float fixed-units"></div>
X<br/>
X<br/>
X<br/>
X
</div>
<div class="container">
<div class="float relative-units"></div>
X<br/>
X<br/>
X<br/>
X
</div>
<div class="container">
<div class="float different-units"></div>
X<br/>
X<br/>
X<br/>
X
</div>
<div class="container">
<div class="float edge-case"></div>
X<br/>
X<br/>
X<br/>
X
</div>
</body>