[jQuery] animate padding start value - Firefox (getComputedStyle)

[jQuery] animate padding start value - Firefox (getComputedStyle)


(Firefox 3.0.10, OS X)
I am setting a padding value via a stylesheet and trying to animate it
-
- CSS
myElement { padding: 20px }
- Javascript
myElement.animate( {padding: 12px} )
When calculating the start padding value, jQuery calls
'getComputedStyle'. Unfortunately,
computedStyle.padding = ""
computedStyle.padding-top = "20px"
computedStyle.padding-right = "20px"
computedStyle.padding-bottom = "20px"
computedStyle.padding-left = "20px"
and the call to 'getPropertyValue' returns an empty string (which is
translated to 0px).
Would this be considered a jQuery or Firefox issue?