Permalink
Browse files

Support: Skip style-based tests when element.style is undefined

Fixes #14785
Ref #13754
Ref badcd1b
  • Loading branch information...
1 parent 70ac448 commit a7ea12a9a7c696a14455bfe4bfebf984dd329832 @gibson042 gibson042 committed Feb 14, 2014
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/css/support.js
View
@@ -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";

0 comments on commit a7ea12a

Please sign in to comment.