Checking relative and absolute positioning relationships