The website of Ura Design
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
492 B

7 years ago
/*
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);
});
}());