Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#12200 closed bug (cantfix)

Offset returns wrong values in IE9 when parent element has :first-line pseudo

Reported by: dumbdrum@… Owned by:
Priority: low Milestone: None
Component: offset Version: 1.7.2
Keywords: ie9 ie10 Cc: dmethvin
Blocked by: Blocking:

Description

In IE9, if the parent element has the pseudo class :first-line, jQuery's offset() will return incorrect values. The values appears to be the window's offset. I have a fiddle.. http://jsfiddle.net/TheSharpieOne/g8RFp/

Change History (5)

comment:1 Changed 7 years ago by dmethvin

Component: unfiledoffset
Keywords: ie9 added
Priority: undecidedlow
Status: newopen

Very good test case!

comment:2 Changed 7 years ago by DFoxinator

This seems like it might be a "can't fix" because the actual issue is in the native getBoundingClientRect method in IE9 and IE10, which offset relies on.

Here's a fiddle with getBoundingClientRect used: http://jsfiddle.net/g8RFp/11/

comment:3 Changed 7 years ago by mikesherov

Cc: demthvin added
Resolution: cantfix
Status: openclosed

dmethvin, can you spin this up to Microsoft? Thanks!

comment:4 Changed 7 years ago by dmethvin

Link to IE bug feedback, you'll need to login with a Windows Live account to see it: https://connect.microsoft.com/IE/feedback/details/769198

comment:5 Changed 6 years ago by dmethvin

Cc: dmethvin added; demthvin removed
Keywords: ie10 added

Doesn't look like this got fixed for IE10, let's hope for IE11. There's still no reasonable way for us to detect/fix and it's an edge case, so the resolution stands

Note: See TracTickets for help on using tickets.