blob: 8f1ca467d8444aff9672e0e2b203553e9c866f27 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.wrapper {
width: 200px;
height: 200px;
border: 1px solid black;
}
.box {
width: 200px;
height: 200px;
background-color: green;
overflow: hidden;
-webkit-clip-path: url(#MaskTest);
}
</style>
</head>
<body>
<svg height="0" width="0">
<clipPath id="MaskTest" clipPathUnits="objectBoundingBox" transform="scale(0.005, 0.005)">
<path d="M0,0 L100,0 L100,100 L0,100 L0,0 z"/>
</clipPath>
</svg>
<div class="wrapper">
<div class="box"></div>
</div>
</body>
</html>