blob: cbf67eeca31039c4cb50e3438f84cf0de95f2428 [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>