blob: 6feec2c3200e489b78f18a7065d78a2fc5cac78a [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Test: rounded rectangle shape-outside on floats with clamped radii values</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-004-ref.html">
<meta name="flags" content="ahem">
<style>
.container {
font: 10px/1 Ahem, sans-serif;
width: 80px;
height: 40px;
border: 1px solid black;
margin: 5px;
}
.float {
float: left;
width: 40px;
height: 40px;
border: 1px solid blue;
border-radius: 50%;
}
.fixed-units {
-webkit-shape-outside: rectangle(0px, 0px, 40px, 40px, 40px, 40px);
}
.different-units {
-webkit-shape-outside: rectangle(0px, 0px, 40px, 40px, 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>