Currently only works on Nightly 20141028 or higher, with layout.css.scroll-behavior.enabled = true in about:config

More info