jQuery.fx.update incorrectly sets elements' inline style display to "block"
|Reported by:||enaeseth||Owned by:|
|Keywords:||display inline-block table-cell||Cc:|
During height and width animations,
jQuery.fx.update adds an inline style to its targeted elements changing their display to "block".
This behavior is now incorrect. Browsers have implemented support for more of the CSS2 values for display like "inline-block", "table-cell", and "list-item", and – importantly – they have let these new values override rendering behavior for elements that previously got special handling. In the past, when a display of "block" was applied to a
<td> element, it was still rendered as a table cell, but this is no longer true. In modern browsers, it is now rendered as an actual block, just as a
<div> naturally would be.
To function as expected,
jQuery.fx.update must be updated with either a whitelist of display values that should be changed to "block" (e.g., "inline"), or a blacklist of display values that should not be changed (e.g., "inline-block").