aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2014-02-14 06:22:44 -0800
committerRichard Gibson <richard.gibson@gmail.com>2014-02-14 06:22:44 -0800
commita7ea12a9a7c696a14455bfe4bfebf984dd329832 (patch)
treecc0296936c0b16863477bcafd378dfe744852462 /src
parent70ac4485f30633074696fa28ca29b0325459f228 (diff)
downloadjquery-a7ea12a9a7c696a14455bfe4bfebf984dd329832.tar.gz
jquery-a7ea12a9a7c696a14455bfe4bfebf984dd329832.zip
Support: Skip style-based tests when element.style is undefined
Fixes #14785 Ref #13754 Ref badcd1b6f301e6253405f17759c1270549a34e12
Diffstat (limited to 'src')
-rw-r--r--src/css/support.js4
1 files changed, 4 insertions, 0 deletions
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";