From: Richard Gibson Date: Fri, 14 Feb 2014 14:22:44 +0000 (-0800) Subject: Support: Skip style-based tests when element.style is undefined X-Git-Tag: 2.1.1-beta1~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a7ea12a9a7c696a14455bfe4bfebf984dd329832;p=jquery.git Support: Skip style-based tests when element.style is undefined Fixes #14785 Ref #13754 Ref badcd1b6f301e6253405f17759c1270549a34e12 --- diff --git a/src/css/support.js b/src/css/support.js index df0f3a2b2..8623979e2 100644 --- a/src/css/support.js +++ b/src/css/support.js @@ -12,6 +12,10 @@ define([ container = document.createElement( "div" ), div = document.createElement( "div" ); + if ( !div.style ) { + return; + } + div.style.backgroundClip = "content-box"; div.cloneNode( true ).style.backgroundClip = ""; support.clearCloneStyle = div.style.backgroundClip === "content-box";