<html> | |
<head> | |
<style type="text/css"> | |
.green { | |
width: 100px; | |
height: 100px; | |
background-color: rgba(0, 128, 0, 128); | |
display: block; | |
} | |
.blue { | |
width: 50px; | |
height: 50px; | |
background-color: rgba(0, 0, 128, 128); | |
display: block; | |
} | |
.composited { | |
-webkit-transform: translateZ(0); | |
} | |
</style> | |
</head> | |
<body> | |
<div class="green composited"> | |
<div class="blue composited"> | |
</div> | |
</div> | |
</body> | |
</html> |