blob: 3335417ba9cdcd8a2a42909e9354b830d2e0a41c [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
.outer {
width: 120px;
height: 230px;
margin: 20px;
border: 1px solid black;
-webkit-box-reflect: right 10px;
}
.inner {
margin: 10px;
width: 100px;
height: 100px;
background-color: green;
-webkit-box-reflect: below 10px;
}
.composited {
-webkit-transform: translateZ(0);
}
.overflow {
position: relative;
overflow: scroll;
width: 100%;
height: 100%;
z-index: 0;
}
.content {
height: 500px;
}
</style>
</head>
<body>
<p>You should see the original and three copies of the green box with text.</p>
<div class="outer composited">
<div class="inner composited">
<div class="overflow">
<div class="content composited">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</div>
</div>
</div>
</div>
</body>
</html>