Ticket #5749 (closed enhancement: duplicate)
Regarding curCSS, css, and backgroundPosition plugin within IE (reproducable in 8)
| Reported by: | tbranyen | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.4 |
| Component: | core | Version: | 1.3.2 |
| Keywords: | backgroundPosition, background-position, css | Cc: | |
| Blocking: | Blocked by: |
Description
The CSS property backgroundPosition does not exist in the accessible DOM properties within IE 8. This has caused issues whereas a return value of undefined is passed and breaks the backgroundPosition plugin code.
A fix could be to test for undefined after retrieving backgroundPosition, and if undefined concatenate backgroundPositionX and Y to form the correct return value.
I understand shorthand values are not supposed to be available through css, but this does break functionality within an adopted plugin and cross browser support.
Change History
comment:2 Changed 3 years ago by tbranyen
http://dev.jquery.com/changeset/6073 - this plugin relies on it
Is the only objection to implementing this fix to keep css and curCSS consistent to not supporting shorthand versions?
comment:3 Changed 3 years ago by dmethvin
- Type changed from bug to enhancement
I don't have any specific objection to a fix, but at the moment there isn't any fix written and it's not a critical issue so it's not likely to be fixed for 1.4. That's why I suggested a workaround.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Which plugin needs the functionality? It would be best to have the plugin work around the issue so it would work with current/older jQuery.