Skip to main content

Bug Tracker

Side navigation

#11972 closed bug (duplicate)

Opened June 26, 2012 12:10AM UTC

Closed June 26, 2012 01:25AM UTC

Last modified June 26, 2012 01:25AM UTC

Animating background-position fails in IE8

Reported by: lgarvey Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

I'm attempting to animate a background image. As per the following jsfiddle:

http://jsfiddle.net/vEaMd/2/

This fails in IE8 ultimately because

 jQuery.css('backgroundPositionX')

on the div returns "right". In chrome it returns "100%" and in firefox it returns nothing. This breaks the animation since it cannot retrieve the starting position of the background to be animated.

The $.css inconsistency can be easily tested using the following jsfiddle:

http://jsfiddle.net/Zqj7t/

If someone can point me towards a jQuery test that fixes a similar cross-browser inconsistency I'd gladly write up a proper test-case and submit a patch via github

Attachments (0)
Change History (2)

Changed June 26, 2012 01:25AM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

Changed June 26, 2012 01:25AM UTC by dmethvin comment:2

Duplicate of #11971.