jquery/jquery — pull request #719 by laughinghan (2012-03-28 08:38:39+00:00)
Title: Actually fix #11523 (in Opera, `.offset()` sometimes return all 0s), add `$.support.zeroOffset`

Unlike Pull Request #171, _actually_ fix #11523 (in Opera, `.getBoundingClientRect()` returns all 0s on inline elements with negative `margin-right` at the end of their parent, which `.offset()` currently passes through).

Adds and makes use of the same `$.support.zeroOffset`, which checks for this bug.

When `.getBoundingClientRect()` is returning all zeroes and `$.support.zeroOffset` has checked that this bug is in effect, prepend a temporary, `position:absolute;top:0;left:0` test element, guarantee that the element we're measuring the offset of is not `position:static`, measure the offset of the test element, then revert everything.

Same test case, addsed `div` to middle of `index.html` because the `closest(body:first div:last)` test expects `div#fx-tests` to be the last `div` in the `body`.