Skip to main content

Bug Tracker

Side navigation

#11523 closed bug (wontfix)

Opened March 27, 2012 03:13AM UTC

Closed June 16, 2012 03:44PM UTC

in Opera, offset() returns 0's on inline elements with negative margin-right at the end of their parent

Reported by: Owned by:
Priority: low Milestone: None
Component: offset Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Attachments (0)
Change History (6)

Changed March 27, 2012 03:16AM UTC by comment:1

This is due to .getBoundingClientRect() returning all 0's (in Opera in this edge case). This bug has been submitted to Opera, but it's also a bug in jQuery that the supposedly normalized .offset() doesn't correct for it.

Changed March 27, 2012 03:17AM UTC by comment:2

.getBoundingClientRect() test case:

Changed March 27, 2012 09:31AM UTC by sindresorhus comment:3

component: unfiledoffset
priority: undecidedlow
status: newopen

Confirmed in Opera 11.62 and Opera 12 alpha.

Simplified testcase:

Changed March 27, 2012 05:25PM UTC by comment:4

Submitted Pull Request #717 fixing this and adding $.support.zeroOffset that checks for this.

Changed March 28, 2012 08:50AM UTC by comment:5

#717 never worked, but Pull Request 719 does, pinkie promise

Changed June 16, 2012 03:44PM UTC by mikesherov comment:6

resolution: → wontfix
status: openclosed

We closed the pull request because it was too large to warrant the "edge-casiness" of this. The bug was reported to opera and @miketaylr. Marking as wontfix.