blob: 6311f5592cb7e3ca396bb458348d3c4193bace06 [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Test: shape-outside on floats shape clipped to left and right of margin box with 0 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">
<link rel="match" href="shape-outside-floats-clipped-000-ref.html">
<meta name="flags" content="ahem">
<head>
<style>
.container {
font: 50px/1 Ahem, sans-serif;
line-height: 50px;
width: 100px;
height: 100px;
border: 1px solid black;
color: green;
background-color: red;
display: inline-block;
}
#float-left {
float: left;
width: 50px;
height: 100px;
shape-outside: rectangle(0, 0, 200%, 100%);
background-color: green;
}
#float-right {
float: right;
width: 50px;
height: 100px;
shape-outside: rectangle(-100%, 0, 200%, 100%);
background-color: green;
}
</style>
<body>
<p>This should display two green squares. You should not see any red.</p>
<div class="container">
<div id="float-left"></div>
X X
</div>
<div class="container" style="text-align: right">
<div id="float-right"></div>
X X
</div>
</body>