added support for elements with "position:absolute"