blob: 57935564bf02a266189d65f6a7546c72a0497614 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Clip property (reference)</title>
</head>
<body>
<p>Rectangles should be clipped to a polygon.</p>
<div style="background: green; width: 200px; height: 200px; clip-path: polygon(10% 10%, 90% 10%, 90% 90%, 10% 90%)"></div>
<div style="background: green; width: 200px; height: 200px; position: absolute; top: 300px; clip-path: polygon(10% 10%, 90% 10%, 90% 90%, 10% 90%)"></div>
</div>
</body>
</html>