Skip to main content

Bug Tracker

Side navigation

#12990 closed bug (fixed)

Opened December 01, 2012 10:02PM UTC

Closed December 12, 2012 03:39AM UTC

'px' automatically added to column-count css property

Reported by: bsorbo Owned by: bsorbo
Priority: low Milestone: 1.9
Component: css Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:
Description

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. 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/

Attachments (0)
Change History (3)

Changed December 01, 2012 10:25PM UTC by gnarf comment:1

owner: → bsorbo
status: newassigned

Changed December 04, 2012 05:03AM UTC by gibson042 comment:2

component: unfiledcss
milestone: None1.9
priority: undecidedlow

Changed December 12, 2012 03:39AM UTC by Bennett Sorbo comment:3

resolution: → fixed
status: assignedclosed

Fix #12990. Don't add 'px' to column-count. Close gh-1050.

Changeset: 32842ac36564e9db60bcf8ad841674b161e7c924