aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/css.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/css.js b/src/css.js
index 79127ec0e..30342a230 100644
--- a/src/css.js
+++ b/src/css.js
@@ -286,6 +286,9 @@ jQuery.extend({
// If a hook was provided, use that value, otherwise just set the specified value
if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
+ // Support: Chrome, Safari
+ // Setting style to blank string required to delete "style: x !important;"
+ style[ name ] = "";
style[ name ] = value;
}