I have been trying to hide a child element "list" behind the parent element "div2" using translateZ. It works fantastically in chrome but not on firefox. Some body please help.
Link to JSFiddle . translateZ on firefox
.list {
width: 200px;
height: 10px;
background-color: yellow;
-moz-transform: translateZ(-1em);
-webkit-transform: translateZ(-1em);
}
Please find the image here Image Link
Image on the left side which is working correctly on chrome. Yellow bar is behind red div. Image on the right is from firefox in which yellow bar is in front of the red div - which was not expected.