From a7ea12a9a7c696a14455bfe4bfebf984dd329832 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Fri, 14 Feb 2014 06:22:44 -0800 Subject: [PATCH] Support: Skip style-based tests when element.style is undefined Fixes #14785 Ref #13754 Ref badcd1b6f301e6253405f17759c1270549a34e12 --- src/css/support.js | 4 ++++ 1 file changed, 4 insertions(+) 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"; -- 2.39.5