blob: 59b49a7379ce49f7d5b03c8cb45e3b49207517f6 [file] [log] [blame]
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Transform-clipping bug</title>
<style type="text/css" media="screen">
body {
margin: 0;
}
.zero-size-item {
position: absolute;
top: 10px;
left: 10px;
height: 0px;
width: 0px;
-webkit-transform-origin: 0 100px;
-webkit-transform: scale3d(0.5, 0.5, 1);
}
.box {
position: absolute;
width: 100px;
height: 100px;
background-color: green;
-webkit-transform: translateZ(10px);
}
#indicator {
position: absolute;
top: 60px;
left: 10px;
width: 50px;
height: 50px;
background-color: red;
}
</style>
</head>
<body>
<p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=29495">29495</a>. You should see one green box below, with no red.</p>
<div id="indicator"></div>
<div class="zero-size-item">
<div class="box"></div>
</div>
</body>
</html>