A simple example:
.wrapper{
height: 500px;
width: 500px;
background: black;
overflow: auto;
transform: translateZ(0);
}
.content{
background: linear-gradient(150deg, rgba(255,255,255, 0) 46%, rgba(255,255,255, 0.02) 46.1%, rgba(255,255,255, 0.03) 50.1%, rgba(255,255,255, 0.02) 53.9%, rgba(255,255,255, 0) 54%);
margin: 50px;
height: 200px;
width: 300px;
border: 1px solid #fff;
background-attachment: fixed;
}
<div class="wrapper">
<div class="content"></div>
<div class="content"></div>
<div class="content"></div>
<div class="content"></div>
<div class="content"></div>
<div class="content"></div>
<div class="content"></div>
<div class="content"></div>
</div>
The background image isn't remaining fixed when any ancestor has any transformation, so far as I've tried (Chrome). Is this a bug or expected behavior? Is there any non-js workaround to make it behave?