diff options
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/support.js b/src/support.js index e4a8b7c83..9cc46c63e 100644 --- a/src/support.js +++ b/src/support.js @@ -170,6 +170,19 @@ jQuery.support = (function() { } } + support.clearCloneStyle = (function() { + var source = document.createElement( "div" ), + styleName = "backgroundClip", + value = "content-box", + clone; + + source.style[ styleName ] = value; + clone = source.cloneNode( true ); + clone.style[ styleName ] = ""; + + return source.style[ styleName ] === value; + })(); + // Run tests that need a body at doc ready jQuery(function() { var container, div, tds, marginDiv, |