Commit a7ea12a9 authored by Richard Gibson's avatar Richard Gibson

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

Fixes #14785
Ref #13754
Ref badcd1b6
parent 70ac4485
...@@ -12,6 +12,10 @@ define([ ...@@ -12,6 +12,10 @@ define([
container = document.createElement( "div" ), container = document.createElement( "div" ),
div = document.createElement( "div" ); div = document.createElement( "div" );
if ( !div.style ) {
return;
}
div.style.backgroundClip = "content-box"; div.style.backgroundClip = "content-box";
div.cloneNode( true ).style.backgroundClip = ""; div.cloneNode( true ).style.backgroundClip = "";
support.clearCloneStyle = div.style.backgroundClip === "content-box"; support.clearCloneStyle = div.style.backgroundClip === "content-box";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment