blob: d2bf6bc6f7731dd68962a6327d4b17372bc44695 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<style>
#d {
position: absolute;
top: 20px;
left: 20px;
width: 180px;
height: 180px;
background-color: blue;
box-sizing: border-box;
zoom: 2;
}
#clip {
width: 160px;
height: 160px;
margin: 10px;
background-color: green;
clip-path: url(#c2);
}
</style>
</head>
<body>
<svg height="100" width="100">
<clipPath id="c2">
<rect x="65" y="65" width="32" height="18"/>
<rect x="65" y="81" width="32" height="16"/>
</clipPath>
</svg>
<div id="d"><div id="clip"></div></div>
</body>
</html>