#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 11 years ago by
Component: | unfiled → css |
---|---|
Milestone: | None → 1.6.3 |
Priority: | undecided → low |
Resolution: | → duplicate |
Status: | new → closed |
comment:2 Changed 11 years ago by
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 11 years ago by
Keywords: | needsdocs added |
---|
comment:5 Changed 11 years ago by
Milestone: | 1.6.3 |
---|
comment:6 Changed 10 years ago by
Keywords: | needsdocs removed |
---|
Note: See
TracTickets for help on using
tickets.
jQuery normalizes all style property values to pixels. This is a duplicate. Will find later.