/AppLanding/js/vendor/modernizr/feature-detects/css-backgroundposition-shorthand.js
https://gitlab.com/webocalypse/themes · JavaScript · 19 lines · 9 code · 4 blank · 6 comment · 0 complexity · 3bf4308b23f8ae0a52c2ac6c546c8f9c MD5 · raw file
- /*
- https://developer.mozilla.org/en/CSS/background-position
- http://www.w3.org/TR/css3-background/#background-position
- Example: http://jsfiddle.net/Blink/bBXvt/
- */
- (function() {
- var elem = document.createElement('a'),
- eStyle = elem.style,
- val = "right 10px bottom 10px";
- Modernizr.addTest('bgpositionshorthand', function(){
- eStyle.cssText = "background-position: " + val + ";";
- return (eStyle.backgroundPosition === val);
- });
- }());