In Chrome and Firefox, when a transform is defined in the parent container, the child's position will inherit from the parent container. However, this behavior does not occur in IE.
So, how can I ensure that it works in IE11 so that the child's position is always relative to the parent container?
div.fixed {
position: fixed;
top: 100px;
width: 300px;
height: 100px;
border: 3px solid #73AD21;
background-color: red;
transform: translate3d(0, 0px, 0);
}
div.fixed2 {
position: fixed;
top: 100px;
width: 300px;
height: 100px;
border: 3px solid #73AD21;
background-color: blue;
}
<div class="fixed">
<div class='fixed2'></div>
</div>