Position: Support positioning within document with jQuery 1.6.x

Fixes #10071

The tests were failing because we were calling `.outerWidth()` on a jQuery object containing a document. This wasn't supported until jQuery 1.7.0. See http://bugs.jquery.com/ticket/9434