Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<head>
<style>
div {
width: 100px;
height: 100px;
clip-path: url(#c1);
background-color: blue;
opacity: 0.5;
}
</style>
</head>
<body>
<div/>
<svg:svg height="0">
<svg:clipPath id="c1">
<svg:rect x="0" y="0" width="50" height="100"/>
</svg:clipPath>
</svg:svg>
</body>
</html>