blob: d80fed24adf7c6521604a2356105b102e4edaa37 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.internals)
window.internals.settings.setCSSExclusionsEnabled(true);
</script>
<style>
#shape-inside {
width: 200px;
height: 300px;
-webkit-shape-inside: rectangle(10px, 15px, 170px, 280px);
position: relative;
}
#border {
position: absolute;
top: 13px;
left: 8px;
width: 170px;
height: 280px;
border: 2px solid blue;
}
p { margin-top: 0; }
</style>
</head>
<body>
<div id="shape-inside">
<div id="border"></div>
<div>
<p>Paragraph 1. This paragraph should be just below the top edge of the blue
rectangle. It's left and right edges should be within the blue rectangle.
</div>
<p>Paragraph 2. This paragraph should be just below paragraph 1. Its left
and right edges should also be within the blue rectangle.
</div>
</body>
</html>