Very recently this used to work well in Firefox. Now, it seems to be broken. I can't find any relevant report on bugzilla or elsewhere... Anyone know what's up?
see caniuse:
and then test in FF:
To elaborate on @minitech's comment:
position: sticky
is right now controlled by a preference, namely layout.css.sticky.enabled
. You can turn it on in about:config
if you'd like to play with it already in Firefox 31.
Bug 916315 enabled it by default starting with Firefox 32, which is currently in beta. It is supposed to be enabled by default when Firefox 32 becomes the stable release, however you never know what show-stopper bugs might be discovered in the beta period (or by Aurora and Nightly users).