blob: b68891ec280567109e6988416810cd5674d5e847 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.box {
margin: 20px;
height: 150px;
width: 200px;
-webkit-clip-path: path("M100,40l20,0 0,60 20,0 0,-20 -60,0 0,-20 80,0 0,60 -60,0 0,-80z");
background-color: blue;
}
.box.evenodd {
-webkit-clip-path: path(evenodd, "M100,40l20,0 0,60 20,0 0,-20 -60,0 0,-20 80,0 0,60 -60,0 0,-80z");
background-color: green;
}
</style>
</head>
<body>
<div class="box"></div>
<div class="evenodd box"></div>
</body>
</html>