blob: 4e8cfeb547684203dbea4acf925908124f0a7146 [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Test: shape-outside on floats with a positive bottom and top 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 positive margins on the logical top and bottom sides of a float does not affect inline content wrapping around the shape.">
<link rel="match" href="shape-outside-floats-margin-003-ref.html">
<meta name="flags" content="ahem">
<head>
<style>
.container {
font: 20px/1 Ahem, sans-serif;
line-height: 20px;
width: 100px;
height: 60px;
border: 1px solid black;
color: green;
display: inline-block;
background-color: red;
}
#float-left {
float: left;
width: 100px;
height: 20px;
-webkit-shape-outside: rectangle(0, 0, 100%, 100%);
margin-top: 20px;
margin-bottom: 20px;
background-color: green;
}
#float-right {
float: right;
width: 100px;
height: 20px;
-webkit-shape-outside: rectangle(0, 0, 100%, 100%);
margin-top: 20px;
margin-bottom: 20px;
background-color: green;
}
</style>
<body>
<p>This should display two green rectangles. You should not see any red.</p>
<div class="container">
<div id="float-left">
</div>
XXXXX XXXXX
</div>
<div class="container">
<div id="float-right">
</div>
XXXXX XXXXX
</div>
</body>