animate() issue when mixing percentages and pixels in WebKit
|Reported by:||robert.klep@…||Owned by:||mikesherov|
[ testcase at http://jsfiddle.net/AdrwK/1/ (watch console output) ]
When performing animation on an element which is positioned by percentage with CSS, running an animation on it using a pixel value causes problems.
fx.start is set to the percentual value (for instance '-10' when the element is positioned '-10%'), but fx.unit is px. So fx.start is interpreted as being a pixel value instead of a percentage, which causes jumps.
Issue seems to be related to WebKit (tested on Chrome 11.0.696.71 and Safari 5.0.5-6533.21.1), FF 4.0.1 and Opera 11.11 aren't affected (fx.start contains a pixel value as well).
Change History (14)
comment:2 Changed 5 years ago by timmywil
- Component changed from unfiled to effects
- Priority changed from undecided to low
comment:8 Changed 4 years ago by mikesherov
- Milestone changed from 1.next to 1.8
- Owner set to mikesherov
- Status changed from open to assigned
comment:12 Changed 4 years ago by Mike Sherov
- Resolution set to fixed
- Status changed from assigned to closed