blob: 8963c143f45094e99f8471d31288668c27beee31 [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Test: shape-outside on floats with a positive padding</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-padding-property">
<link rel="match" href="shape-outside-floats-padding-000-ref.html">
<meta name="flags" content="ahem">
<head>
<style>
.container {
font: 20px/1 Ahem, sans-serif;
width: 100px;
height: 20px;
border: 1px solid black;
color: green;
display: inline-block;
}
#float-left {
float: left;
width: 100px;
height: 20px;
-webkit-shape-outside: rectangle(0, 0, 0, 100%);
padding-right: 20px;
}
#float-right {
float: right;
width: 100px;
height: 20px;
-webkit-shape-outside: rectangle(0, 0, 0, 100%);
padding-left: 20px;
}
</style>
<body>
<p>This should display two green bars, with white squares on opposite sides.</p>
<div class="container" style="text-align: right">
<div id="float-right">
</div>
XXXX
</div>
<div class="container">
<div id="float-left">
</div>
XXXX
</div>
</body>