Skip to content

Commit 8072d25

Browse files
committed
Effects: Fix inline element animations
Ref 80cf965 Ref #14848
1 parent e04c465 commit 8072d25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/effects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ function createTween( value, prop, animation ) {
116116

117117
function defaultPrefilter( elem, props, opts ) {
118118
/* jshint validthis: true */
119-
var prop, value, toggle, tween, hooks, oldfire, display, dDisplay,
119+
var prop, value, toggle, tween, hooks, oldfire, display,
120120
anim = this,
121121
orig = {},
122122
style = elem.style,
@@ -166,7 +166,7 @@ function defaultPrefilter( elem, props, opts ) {
166166

167167
// inline-level elements accept inline-block;
168168
// block-level elements need to be inline with layout
169-
if ( !support.inlineBlockNeedsLayout || dDisplay === "inline" ) {
169+
if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {
170170
style.display = "inline-block";
171171
} else {
172172
style.zoom = 1;

0 commit comments

Comments
 (0)