Modify ↓
Ticket #6791 (closed bug: duplicate)
Animate on IMG elems incorrectly sets style.display to "block"
| Reported by: | shaungrady | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4.3 |
| Component: | effects | Version: | 1.4.2 |
| Keywords: | animate update img display | Cc: | |
| Blocking: | Blocked by: |
Description
When running an animation on an IMG elem, the fx update function sets the style.display to "block". IMG elems can have both dimensions set while in their native display-type of "inline".
Patch of line 5738
From: this.elem.style.display = "block";
To: this.elem.style.display = this.elem.tagName === "IMG" ? "inline" : "block";
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.

Duplicate of #2185.