blob: 33ea9049c39086e1b7e935793267656aa313ad38 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<style>
* {padding: 0; margin: 0}
#d {
width: 180px;
height: 180px;
border: 1px solid black;
background-color: blue;
}
#clip {
width: 160px;
height: 160px;
margin: 10px;
background-color: green;
-webkit-clip-path: url(#c2);
}
</style>
</head>
<body>
<svg height="100" width="100">
<clipPath id="c2" clipPathUnits="userSpaceOnUse">
<rect x="65" y="65" width="32" height="32"/>
</clipPath>
</svg>
<div id="d"><div id="clip"></div></div>
</body>
</html>