blob: a432cc09d17a39e6bbb0436ce977970297676748 [file]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.internals)
window.internals.settings.setCSSExclusionsEnabled(true);
</script>
<style>
#container {
border: 2px solid blue;
position: relative;
width: 200px;
height: 200px;
}
#shape-inside {
-webkit-shape-inside: rectangle(50px, 0px, 100px, 50px);
}
#border {
position: absolute;
left: 48px;
width: 100px;
height: 50px;
border: 2px solid green;
}
#border-overflow {
position: absolute;
top: 50px;
width: 200px;
height: 150px;
border: 2px solid blue;
}
</style>
</head>
<body>
<div id="container">
<div id="border"></div>
<div id="shape-inside">
This text should wrap inside the green rectangle, and overflow should wrap
inside the blue rectangle.
</div>
</div>
</body>
</html>