blob: 8d14ae02a4f7514d2c891e14e70502cedb0e63a1 [file] [log] [blame]
<!DOCTYPE html>
<!--
| "overflow" property affects the clipping of all of the element's content
| except any descendant elements whose containing block is the viewport or
| an ancestor of the element.
| https://www.w3.org/TR/CSS21/visufx.html#overflow
-->
<html>
<head>
<style>
.outer {
background-color: rgb(63, 81, 181);
overflow: hidden;
width: 100px;
height: 100px;
margin-bottom: 100px;
}
.inner {
position: relative;
background-color: #2196f3;
width: 100px;
height: 100px;
left: 50px;
top: 50px;
}
</style>
</head>
<body>
<div class="outer">
<div class="inner"></div>
</div>
</body>
</html>