diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2014-02-14 06:22:44 -0800 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2014-02-14 06:22:44 -0800 |
commit | a7ea12a9a7c696a14455bfe4bfebf984dd329832 (patch) | |
tree | cc0296936c0b16863477bcafd378dfe744852462 /src | |
parent | 70ac4485f30633074696fa28ca29b0325459f228 (diff) | |
download | jquery-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.js | 4 |
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"; |