From cecb9a49e6cced04b362f0f0c24f79138fc6a0ee Mon Sep 17 00:00:00 2001 From: iBobo Date: Wed, 3 Feb 2016 12:37:38 +0100 Subject: [PATCH] Edge 13 doesn't make animations with value auto Solving a bug in Microsoft Edge where the animation is not even started when the starting value is auto, much like Firefox; adding an OR to detect Edge in the Firefox handling code, does the trick. --- dom/animate/animate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/animate/animate.js b/dom/animate/animate.js index 47f965b5..e46addb9 100644 --- a/dom/animate/animate.js +++ b/dom/animate/animate.js @@ -284,8 +284,9 @@ steal('jquery', function ($) { properties.push(prop); } - if(getBrowser().prefix === '-moz-') { + if(getBrowser().prefix === '-moz-' || /Edge\/\d+/.test(navigator.userAgent)) { // Normalize 'auto' properties in FF + // This is also needed in Edge (tested in 13) $.each(properties, function(i, prop) { var converter = ffProps[$.camelCase(prop)]; if(converter && self.css(prop) == 'auto') {