22 lines
301 B
HTML
22 lines
301 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<style>
|
|
div {
|
|
margin: 20px;
|
|
width: 200px;
|
|
height: 200px;
|
|
background-color: green;
|
|
}
|
|
#clip {
|
|
background-color: red;
|
|
overflow: hidden;
|
|
-webkit-clip-path: inset(20px -20px 0 20px);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="clip"><div>
|
|
</body>
|
|
</html>
|