We usually tested it with `jQuery.contains( elem.ownerDocument, elem )`, but now we switching to `elem.getClientRects()`