[DOM] Handle scrolling of empty Fragments below containers (#37061)