blob: ec1df199b170f5f7912571b4b57dc4281a101d44 [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="32"/>
</clipPath>
</svg>
<div id="d"><div id="clip"></div></div>
</body>
</html>