Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#10050 closed bug (duplicate)

Invalid argument jquery-1.6.2 line 8538

Reported by: sbagnak Owned by:
Priority: low Milestone:
Component: css Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

Description

As continue of #9787
Code with error: http://jsfiddle.net/psv4R/
Code without error: http://jsfiddle.net/7sgKD/

Changed: percents to pixels

with error:

.animate({"width": percentage + "%"});

without error:

.animate({"width": Math.ceil(percentage/100*$('.passwordStrengthBar').width()) + px"});

Error present in IE8 for 1.5.2 and 1.6.2 too.

Change History (6)

comment:1 Changed 6 years ago by Rick Waldron

Component: unfiledcss
Milestone: None1.6.3
Priority: undecidedlow
Resolution: duplicate
Status: newclosed

jQuery normalizes all style property values to pixels. This is a duplicate. Will find later.

comment:2 Changed 6 years ago by dmethvin

The .animate() docs say:

The units em and % can be specified where applicable.

I thought it was only px as well and was trying to figure out where the others might be "applicable". IE<8 doesn't have computed values so we don't have a simple way to convert them to px.

comment:3 Changed 6 years ago by dmethvin

Keywords: needsdocs added

comment:4 Changed 6 years ago by Rick Waldron

Thanks for the clarification on that Dave :)

comment:5 Changed 6 years ago by dmethvin

Milestone: 1.6.3

comment:6 Changed 5 years ago by mikesherov

Keywords: needsdocs removed
Note: See TracTickets for help on using tickets.