47 lines
922 B
HTML
47 lines
922 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.clipping {
|
|
position: absolute;
|
|
z-index: 0;
|
|
top: 20px;
|
|
left: 20px;
|
|
overflow: hidden;
|
|
height: 300px;
|
|
width: 300px;
|
|
margin: 10px;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
.sharing {
|
|
position: relative;
|
|
top: 50px;
|
|
left: 50px;
|
|
width: 180px;
|
|
height: 180px;
|
|
background-color: green;
|
|
}
|
|
|
|
.filtered {
|
|
filter: saturate(0);
|
|
}
|
|
|
|
.trigger {
|
|
transform: translateZ(0);
|
|
width: 50px;
|
|
height: 50px;
|
|
background-color: silver;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="composited trigger"></div>
|
|
<div class="clipping">
|
|
<div class="sharing filtered box">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|