CARVIEW |
Select Language
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sat, 11 Oct 2025 03:26:16 GMT
Content-Type: text/html
Content-Length: 162
Location: https://bugs.jquery.com/ticket/11972/
Connection: keep-alive
Reporting-Endpoints: csp-endpoint='https://csp-report-api.openjs-foundation.workers.dev/'
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval' code.jquery.com; connect-src 'self'; img-src 'self' secure.gravatar.com; style-src 'self'; media-src 'self' content.jquery.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 11 Oct 2025 03:26:17 GMT
Content-Type: text/html
Last-Modified: Wed, 18 Sep 2024 14:30:33 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
ETag: W/"66eae409-27c0"
Reporting-Endpoints: csp-endpoint='https://csp-report-api.openjs-foundation.workers.dev/'
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval' code.jquery.com; connect-src 'self'; img-src 'self' secure.gravatar.com; style-src 'self'; media-src 'self' content.jquery.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
Content-Encoding: gzip
#11972 (Animating background-position fails in IE8) - jQuery - Bug Tracker
jQuery issues have moved to GitHub. This site is now a static archive of the old Trac bugs site. Some functions and pages are no longer available.
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:
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:
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