Commit 8072d25e authored by Richard Gibson's avatar Richard Gibson

Effects: Fix inline element animations

Ref 80cf965e
Ref #14848
parent e04c465b
...@@ -116,7 +116,7 @@ function createTween( value, prop, animation ) { ...@@ -116,7 +116,7 @@ function createTween( value, prop, animation ) {
function defaultPrefilter( elem, props, opts ) { function defaultPrefilter( elem, props, opts ) {
/* jshint validthis: true */ /* jshint validthis: true */
var prop, value, toggle, tween, hooks, oldfire, display, dDisplay, var prop, value, toggle, tween, hooks, oldfire, display,
anim = this, anim = this,
orig = {}, orig = {},
style = elem.style, style = elem.style,
...@@ -166,7 +166,7 @@ function defaultPrefilter( elem, props, opts ) { ...@@ -166,7 +166,7 @@ function defaultPrefilter( elem, props, opts ) {
// inline-level elements accept inline-block; // inline-level elements accept inline-block;
// block-level elements need to be inline with layout // block-level elements need to be inline with layout
if ( !support.inlineBlockNeedsLayout || dDisplay === "inline" ) { if ( !support.inlineBlockNeedsLayout || defaultDisplay( elem.nodeName ) === "inline" ) {
style.display = "inline-block"; style.display = "inline-block";
} else { } else {
style.zoom = 1; style.zoom = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment