I fixed it!
It caused by hiding address bar when you scrolling in the Firefox mobile app.
I resolve it by preventing hiding address bar with adding some styles to the parent element or a wrapper in the body (You can disable this option in the customize section of Firefox browser to test).
.wrapper {
position: fixed;
width: 100%;
height: 100%;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
Answer from Farzaneh Torkpichlou on Stack OverflowCheck your body css tags, the metas, and anything that could affect to that div. Maybe there is another css rule overwriting that 'position'
Also, if you have css3 tags or errors in the body css, for example, transform: translate3d(0px, 0px, 0px); that could make fixed position break in Firefox.
filter on the current element or any parent will cause position fixed break on Firefox. Remove it or find another way to not to use filter directly
I had the exact same problem, turns out the following CSS property of a parent element was causing the problem.
transform: translate3d(0px, 0px, 0px);
Through the process of elimination I was able to determine that having the following in my body was causing all the problems with fixed divs in Firefox:
-o-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
I had originally added this code to prevent flickering in certain CSS transitions throughout the site, but I guess I'll have to add it to each individual class now.