jquery/jquery — pull request #1050 by bsorbo (2012-12-01 22:17:54+00:00)
Title: Prevent 'px' being automatically appended to column-count css property

Hi, I ran into this issue while using the column-count css property with jQuery 1.8.3's css function. The call

$('div').css('-webkit-column-count', 2);

..would silently fail. After looking at the jQuery source, it looks like jQuery automatically appends 'px' to any number passed to the css function -unless- it is on a 'white-list' of values (opacity, zoom, ..). As a workaround, I was able to change the call to...

$('div').css('-webkit-column-count', '2') , which succeeded.

This change simply adds 'column-count' (along with the prefixed versions) to the white-list. It's a small change, but will hopefully save others trouble in the future, thanks.

jsfiddle showing issue: http://jsfiddle.net/DfhMW/