Bug Tracker

Modify

Ticket #12200 (closed bug: cantfix)

Opened 10 months ago

Last modified 3 months ago

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
Blocking: Blocked by:

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

comment:1 Changed 9 months ago by dmethvin

  • Keywords ie9 added
  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to offset

Very good test case!

comment:2 Changed 7 months 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 months ago by mikesherov

  • Cc demthvin added
  • Status changed from open to closed
  • Resolution set to cantfix

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

comment:4 Changed 7 months 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 3 months 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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.