Source code

Revision control

Copy as Markdown

Other Tools

<style>
div {
position: absolute;
width: 100px;
height: 100px;
}
.child:after {
content: "";
position: absolute;
inset: 0;
background-color: black;
}
</style>
<div class="parent">
<div class="child"></div>
</div>