Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-shapes/shape-outside/shape-box/shape-outside-border-box-with-block-start-margin.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>CSS Shape Test: float left, border-box, with a block start margin</title>
<link rel="match" href="reference/shape-outside-border-box-with-block-start-margin-ref.html">
<meta name="assert" content="The float's block start margin offsets the border-box shape, so lines next to that margin are not constrained by the float at all.">
<style>
.container {
width: 150px;
line-height: 0;
}
.shape {
float: left;
shape-outside: border-box;
width: 100px;
height: 50px;
margin: 50px 0 0;
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 class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div><div class="box"></div></div>
</main>
</html>