Skip to main content

Bug Tracker

Side navigation

#5749 closed enhancement (duplicate)

Opened January 04, 2010 06:48PM UTC

Closed November 14, 2010 04:12AM UTC

Last modified November 14, 2010 04:12AM UTC

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

Attachments (0)
Change History (5)

Changed January 05, 2010 12:08AM UTC by dmethvin comment:1

component: unfilledcore

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.

Changed January 05, 2010 03:27AM UTC by tbranyen comment:2

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?

Changed January 06, 2010 01:25AM UTC by dmethvin comment:3

type: bugenhancement

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.

Changed November 14, 2010 04:12AM UTC by dmethvin comment:4

resolution: → duplicate
status: newclosed

We haven't encouraged used of shorthand properties.

Changed November 14, 2010 04:12AM UTC by dmethvin comment:5

Duplicate of #4295.