diff options
author | Elijah Manor <elijah.manor@gmail.com> | 2012-08-13 07:46:55 -0500 |
---|---|---|
committer | Elijah Manor <elijah.manor@gmail.com> | 2012-08-13 07:46:55 -0500 |
commit | f29633536076e831e25705b560c983674ed839ee (patch) | |
tree | 85b28ec0fd8b03cc98a459481c72305f34a48435 /src/support.js | |
parent | f952b97997e529f872859e5cfd43070fc533f3b0 (diff) | |
download | jquery-f29633536076e831e25705b560c983674ed839ee.tar.gz jquery-f29633536076e831e25705b560c983674ed839ee.zip |
Add support check, added assertion to check if cleared, add edge case for backgroundPosition
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, |