blob: 5dac01e3144ef0dedb6368f430221cca94fd486c [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#container {
color: green;
font: 100px/1 Ahem, sans-serif;
-webkit-font-smoothing: antialiased;
}
#shape-outside {
margin-top: 100px;
width: 200px;
height: 400px;
float: left;
-webkit-shape-outside: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><rect width='50%' height='25%' fill='blue' /></svg>");
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><rect width='50%' height='25%' fill='blue' /></svg>");
background-repeat: no-repeat;
}
</style>
</head>
<body>
<p>You should see three green squares: above the blue square, to the blue square's right, and below the blue square.</p>
<div id="container">
<div id="shape-outside"></div>
X<br>X<br>X
</div>
</body>
</html>