Modify ↓
Ticket #10521 (closed bug: duplicate)
Omitting % sign after 0 in .animate property breaks animation in Chrome
| Reported by: | antti.ahti@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | None |
| Component: | effects | Version: | 1.6.4 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Here's a jsfiddle demonstration of the problem. You can see in the .bad version that when the second menu slides in, it overlaps with the first menu in Chrome. This doesn't happen in FF.
The .good version works identically in both FF and Chrome. The only difference to .bad is the % sign after 0 in the .animate property.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This is difficult. We calculate the unit based on the user's input, not at all based on the current value of the style. We could perhaps fall back to that if no unit was provided and then fall back to 'px'.