Bug Tracker

Modify

Ticket #12990 (closed bug: fixed)

Opened 17 months ago

Last modified 16 months ago

'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:
Blocking: Blocked by:

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/

Change History

comment:1 Changed 17 months ago by gnarf

  • Owner set to bsorbo
  • Status changed from new to assigned

comment:2 Changed 17 months ago by gibson042

  • Priority changed from undecided to low
  • Component changed from unfiled to css
  • Milestone changed from None to 1.9

comment:3 Changed 16 months ago by Bennett Sorbo

  • Status changed from assigned to closed
  • Resolution set to fixed

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

Changeset: 32842ac36564e9db60bcf8ad841674b161e7c924

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.