Customizer: Skip animations when they have no duration.
In addition to skipping animations when a related style doesn't Exist, now checks to see if animation styles are Empty as well. This resolves a case where the Gutenberg End to End tests were failing, due to running with animations disabled. This change should also help some users who are intentionally overriding styles to remove animations. See https://github.com/WordPress/gutenberg/issues/32024 for the original Gutenberg issue. Props zieladam, isabel_brison, kevin940726, desrosj, mikeschroder. Fixes #53562. See #53542. Built from https://develop.svn.wordpress.org/trunk@51389 git-svn-id: http://core.svn.wordpress.org/trunk@51000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
846529de97
commit
8222719bc9
|
@ -906,7 +906,7 @@
|
|||
'WebkitTransition': 'webkitTransitionEnd'
|
||||
};
|
||||
prop = _.find( _.keys( transitions ), function( prop ) {
|
||||
return ! _.isUndefined( el.style[ prop ] );
|
||||
return ! _.isUndefined( el.style[ prop ] ) && ! _.isEmpty( el.style[ prop ] );
|
||||
} );
|
||||
if ( prop ) {
|
||||
return transitions[ prop ];
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51388';
|
||||
$wp_version = '5.9-alpha-51389';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue