utilities for working with positioned DOM elements