aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorElijah Manor <elijah.manor@gmail.com>2012-08-13 07:46:55 -0500
committerElijah Manor <elijah.manor@gmail.com>2012-08-13 07:46:55 -0500
commitf29633536076e831e25705b560c983674ed839ee (patch)
tree85b28ec0fd8b03cc98a459481c72305f34a48435 /src/support.js
parentf952b97997e529f872859e5cfd43070fc533f3b0 (diff)
downloadjquery-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.js13
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,