'px' automatically added to column-count css property
|Reported by:||bsorbo||Owned by:||bsorbo|
Hi, I ran into this issue while using the column-count css property with jQuery 1.8.3's css function. The call
..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. However this property might be a good candidate for the 'white list' to save others trouble in the future.
jsfiddle showing issue: http://jsfiddle.net/DfhMW/
Change History (3)
comment:2 Changed 4 years ago by gibson042
- Component changed from unfiled to css
- Milestone changed from None to 1.9
- Priority changed from undecided to low