A measure utility for window, document, viewport and elements