Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Shape Test: float left, padding-box, with margins</title>
<link rel="match" href="reference/shape-outside-padding-box-with-margin-ref.html">
<meta name="assert" content="The float's inline start margin offsets the padding-box shape, and its inline end border is not part of the float area.">
<style>
.container {
width: 150px;
line-height: 0;
}
.shape {
float: left;
shape-outside: padding-box;
box-sizing: content-box;
width: 25px;
height: 100px;
padding: 0 25px;
border-style: solid;
border-color: lightgreen;
border-width: 0 25px;
margin-left: 25px;
background-color: orange;
}
.box {
display: inline-block;
width: 25px;
height: 25px;
background-color: blue;
}
</style>
<main class="container">
<div class="shape"></div>
<div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div></div>
</main>
</html>