brandonaaron / jquery-cssHooks

Collection of cssHooks that work with jQuery 1.4.3+
Other
478 stars 80 forks source link

css("padding") and css("margin") return a blank string with 3 spaces #2

Closed burin closed 13 years ago

burin commented 13 years ago

On the test page, jQuery("#test").css("padding") in console returns a blank string with 3 spaces (same with margin)

It seems to be an issue with jQuery.style not returning the proper values-- if changed to $.css, it works, but that solution won't work on custom cssHooks (e.g. backgroundPositionX)

I submitted a pull request for some tests that should help (failing tests yay!)