blob: 53b67974dffd7ec01617a149a4c5e7df9e11a075 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
#image-shape {
float: left;
-webkit-shape-outside: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100px' height='50px'><rect x='0' y='0' width='100' height='50' fill='rgba(0,0,100, 0.3)'/></svg>");
-webkit-shape-image-threshold: 0.4;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100px' height='50px'><rect x='0' y='0' width='100' height='50' fill='rgba(0,0,100, 0.3)'/></svg>");
background-repeat: no-repeat;
width: 100px;
height: 50px;
}
</style>
</head>
<body>
<p>The green "Hello World" should appear on top of the blue rectangle.</p>
<div style="color: green">
<div id="image-shape"></div>
Hello World
</div>
</body>
</html>