The method accepts a `ratio` option to assert the ratio of the element in viewport. `ratio` defaults to `Number.MIN_VALUE`. NOTE: this reverts commit d950f5b6ee and adds `ratio` option support + does the rename. Fixes #8740
d950f5b6ee
Fixes #20324