return null when no matched elements exist for offset and position