jquery/jquery — pull request #717 by laughinghan (2012-03-27 17:21:32+00:00)
Title: Fix #11523 (in Opera, `.offset()` sometimes return all 0s), add `$.support.zeroOffset`

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

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

Refactors and uses the old slow `getOffset` (sorry Pull Request #642) when `.getBoundingClientRect()` is returning all zeroes and `$.support.zeroOffset` has checked that this bug is in effect.

I even added a test case =)