blob: b7d3ad6278668573375e25c69ee50195aaba570b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.box {
width: 300px;
height: 300px;
background-color: blue;
}
.composited {
-webkit-transform: translateZ(0);
}
.clipped {
-webkit-clip-path: inset(0 50px);
-webkit-mask: linear-gradient(transparent, black);
}
</style>
</head>
<body>
<div class="clipped composited box">asdf</div>
</body>
</html>