blob: 771fe1c3141c6e097401346600e5b84742b5a07b [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Test: inset rectangle shape-outside on floats</title>
<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-outside-property">
<link rel="match" href="shape-outside-floats-inset-rectangle-000-ref.html">
<meta name="flags" content="ahem">
<style>
.test {
font: 20px/1 Ahem, sans-serif;
border: 1px solid black;
line-height: 20px;
}
.container {
width: 60px;
height: 60px;
display: inline-block;
}
.float {
width: 40px;
height: 40px;
}
.exclusion-top {
-webkit-shape-outside: inset-rectangle(21px, 0, 0, 0);
}
.exclusion-right {
-webkit-shape-outside: inset-rectangle(0, 20px, 0, 0);
}
.exclusion-bottom {
-webkit-shape-outside: inset-rectangle(0, 0, 20px, 0);
}
.exclusion-left {
-webkit-shape-outside: inset-rectangle(0, 0, 0, 20px);
}
</style>
<body>
<div class="test container">
<div style="float: left" class="float exclusion-top"></div>
XXX
X
XXX
</div>
<div class="test container">
<div style="float: right" class="float exclusion-top"></div>
XXX
X
XXX
</div>
<div class="test container">
<div style="float: left" class="float exclusion-right"></div>
XX
XX
XXX
</div>
<div class="test container">
<div style="float: left" class="float exclusion-bottom"></div>
X
XXX
XXX
</div>
<div class="test container">
<div style="float: right" class="float exclusion-bottom"></div>
X
XXX
XXX
</div>
<div class="test container">
<div style="float: right" class="float exclusion-left"></div>
XX
XX
XXX
</div>
</body>