Bug Tracker

Opened 14 years ago

Closed 12 years ago

Last modified 11 years ago

#3810 closed bug (worksforme)

offset function in Safari 3

Reported by: squawk Owned by: brandon
Priority: major Milestone: 1.3.1
Component: offset Version: 1.3
Keywords: Cc:
Blocked by: Blocking:


jQuery's offset function doesn't seem to work properly in Safari 3. I am using v1.2.2 but the problem persisted with v1.3 beta 2.

I am using Ariel Flesler's Scrollto Plugin which uses jQuery offset function (http://flesler.blogspot.com/2007/10/jqueryscrollto.html) In Safari 3 the browser seems to scroll too far. An example of the problem can be seen on http://krutsch.de/index.php?s=gallery&c=events)

Change History (3)

comment:1 Changed 14 years ago by john


comment:2 Changed 14 years ago by whscullin

This seems to relate to the use of "position: relative" with "left" or "top" set to (or inherited as) "auto". In Safari the element seems to return arbitrary values for offsetTop and offsetLeft. Using the Safari Web Inspector to disable "position: relative" on <li> for the website in the previous comment, while breaking the image number label, fixes the scrolling issue.

comment:3 Changed 12 years ago by snover

Resolution: worksforme
Status: newclosed

test case works for me in the latest version of safari 3.

Note: See TracTickets for help on using tickets.