Side navigation
#10050 closed bug (duplicate)
Opened August 14, 2011 08:04PM UTC
Closed August 14, 2011 08:37PM UTC
Last modified October 15, 2012 09:18PM UTC
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.
Attachments (0)
Change History (6)
Changed August 14, 2011 08:37PM UTC by comment:1
component: | unfiled → css |
---|---|
milestone: | None → 1.6.3 |
priority: | undecided → low |
resolution: | → duplicate |
status: | new → closed |
Changed August 14, 2011 09:04PM UTC by comment:2
The .animate()
docs say:
The unitsem
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
.
Changed August 14, 2011 09:04PM UTC by comment:3
keywords: | → needsdocs |
---|
Changed August 14, 2011 09:21PM UTC by comment:4
Thanks for the clarification on that Dave :)
Changed August 26, 2011 01:39AM UTC by comment:5
milestone: | 1.6.3 |
---|
Changed October 15, 2012 09:18PM UTC by comment:6
keywords: | needsdocs |
---|
jQuery normalizes all style property values to pixels. This is a duplicate. Will find later.