offsetTop is the distance from the top of the scroll container at which the child pins. It defaults to 0 when neither offset is set, so offsetBottom on its own pins to the bottom only.
offsetBottom is the distance from the bottom edge: a save bar under a long form, a cart total, a wizard's Next button.
Set one offset. With both, the child pins to the bottom edge until you reach it and to the top edge once you scroll past it.