haikuwebkit/LayoutTests/css3/masking/clip-path-with-path.html

27 lines
581 B
HTML

<!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>