blob: 661b21f49aa2ab560353e4411ff28966e334c7ce [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Test: shape-outside on floats with a positive margin</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/#relation-to-box-model-and-float-behavior">
<meta name="assert" content="This tests if a positive margin on the opposite logical side as the float direction (eg: right margin on left float) is properly ignored in the case of a zero extent shape.">
<link rel="match" href="shape-outside-floats-margin-000-ref.html">
<meta name="flags" content="ahem">
<head>
<style>
.container {
font: 20px/1 Ahem, sans-serif;
line-height: 20px;
width: 100px;
height: 20px;
border: 1px solid black;
color: green;
display: inline-block;
}
#float-left {
float: left;
width: 100px;
height: 20px;
shape-outside: rectangle(0, 0, 0, 100%);
margin-right: 20px;
}
#float-right {
float: right;
width: 100px;
height: 20px;
shape-outside: rectangle(0, 0, 0, 100%);
margin-left: 20px;
}
</style>
<body>
<p>This should display two horizontal 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>