blob: ca7f0fb5f59b32be2699830b00cbb7f34a5974b3 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Overflow Test</title>
<style type="text/css" media="screen">
.container {
display: inline-block;
margin: 20px;
width: 120px;
height: 120px;
padding: 10px;
border: 1px solid black;
overflow: hidden;
}
.intermediate {
width: 100px;
height: 100px;
padding: 10px;
border: 1px solid blue;
}
.box {
width: 100px;
height: 150px;
background-color: gray;
-webkit-transform: translateZ(0);
}
</style>
</head>
<body>
<p>Test overflow clipping of composited elements in various configurations.</p>
<div class="container">
<div class="intermediate">
<div class="box">
</div>
</div>
</div>
<div class="container">
<div class="intermediate" style="position: absolute">
<div class="box">
</div>
</div>
</div>
<div class="container" style="position: relative">
<div class="intermediate" style="position: absolute">
<div class="box">
</div>
</div>
</div><br>
<div class="container" style="z-index: 0">
<div class="intermediate">
<div class="box">
</div>
</div>
</div>
<div class="container" style="z-index: 0">
<div class="intermediate" style="position: absolute; z-index: 0;">
<div class="box">
</div>
</div>
</div>
<div class="container" style="position: relative; z-index: 0">
<div class="intermediate" style="position: absolute;">
<div class="box">
</div>
</div>
</div>
</body>
</html>