I've been experimenting with using translateZ to hide a child element called "list" behind the parent element "div2. It works perfectly in Chrome, but unfortunately, it's not working correctly on Firefox. Can anyone provide some guidance or help on this issue?
You can view the JSFiddle example by clicking on this link: translateZ on firefox
.list {
width: 200px;
height: 10px;
background-color: yellow;
-moz-transform: translateZ(-1em);
-webkit-transform: translateZ(-1em);
}
For reference, here is the image: Image Link
The left side of the image shows the expected behavior in Chrome where the yellow bar is hidden behind the red div. The right side of the image displays the incorrect display in Firefox where the yellow bar is positioned in front of the red div.