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: | laughinghan@gmail.com | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | offset | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Attachments (0)
Change History (6)
Changed March 27, 2012 03:16AM UTC by comment:1
Changed March 27, 2012 03:17AM UTC by comment:2
.getBoundingClientRect() test case: http://jsfiddle.net/puVGt/1/
Changed March 27, 2012 09:31AM UTC by comment:3
component: | unfiled → offset |
---|---|
priority: | undecided → low |
status: | new → open |
Confirmed in Opera 11.62 and Opera 12 alpha.
Simplified testcase: http://jsfiddle.net/mofle/cEUun/
Changed March 27, 2012 05:25PM UTC by comment:4
Submitted Pull Request #717 https://github.com/jquery/jquery/pull/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 https://github.com/jquery/jquery/pull/719
Changed June 16, 2012 03:44PM UTC by comment:6
resolution: | → wontfix |
---|---|
status: | open → closed |
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.
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.