javascript/selenium-core/lib/prototype.js
function(mode, element) {
    if (!mode) return 0;
    if (mode == 'vertical')
      return ((this.offset[1] + element.offsetHeight) - this.ycomp) /
        element.offsetHeight;
    if (mode == 'horizontal')
      return ((this.offset[0] + element.offsetWidth) - this.xcomp) /
        element.offsetWidth;
  }
function(mode, element) {
    if (!mode) return 0;
    if (mode == 'vertical')
      return ((this.offset[1] + element.offsetHeight) - this.ycomp) /
        element.offsetHeight;
    if (mode == 'horizontal')
      return ((this.offset[0] + element.offsetWidth) - this.xcomp) /
        element.offsetWidth;
  }
function ( mode , element ) { if ( ! mode ) return 0 ; if ( mode == 'vertical' ) return ( ( this . offset [ 1 ] + element . offsetHeight ) - this . ycomp ) / element . offsetHeight ; if ( mode == 'horizontal' ) return ( ( this . offset [ 0 ] + element . offsetWidth ) - this . xcomp ) / element . offsetWidth ; }
within must be called directly before
within must be called directly before