|
<!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);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="clipped composited box"></div>
|
|
</body>
|
|
</html>
|