Bug Tracker

Modify

Ticket #6791 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

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

comment:1 Changed 3 years ago by snover

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #2185.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.