Skip to content

Truly independent web browser

428 B
Raw Blame
<!DOCTYPE html>
<style>
body {
    margin: 0;
    background: white;
}
.group {
    position: relative;
    mask-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    width: 200px;
    height: 200px;
    background: red;
}
.child {
    position: absolute;
    left: 50px;
    top: 50px;
    width: 100px;
    height: 100px;
    background: blue;
}
</style>
<div class="group">
    <div class="child"></div>
</div>