Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<title>preserve-3d hit testing</title>
<style>
#parent {
transform-style: preserve-3d;
}
#big {
width: 1000px;
height: 1000px;
background-color: #995C7F;
transform: translate3d(0px, 0px, 350px) rotatey(45deg);
}
#small {
width: 100px;
height: 100px;
background-color: #835A99;
transform: translate3d(600px, 200px, 350px);
}
</style>
<body>
<div id="stage">
<div id="parent">
<div id="small"></div>
<div id="big"></div>
</div>
</div>