blob: 04087e78577f15f79d936db223d5fc690796fc80 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.box {
height: 100px;
width: 100px;
background-color: lightblue;
}
.squashed {
height: 40px;
width: 40px;
background-color: lightgreen;
position: absolute;
left: 16px;
}
.rotated {
transform: rotate(10deg);
}
</style>
</head>
<body>
<!-- This div will be the "owner" of the squashing layer -->
<div class="rotated box"></div>
<div id="target" class="squashed" style="top: 4px"></div>
<div class="squashed" style="top: 54px"></div>
</body>
</html>