Skip to content

Commit

Permalink
fourvalues -> shorthand. bgpos detect.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jul 19, 2012
1 parent 743cbe2 commit 1c0f5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feature-detects/css-backgroundposition-shorthand.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
eStyle = elem.style, eStyle = elem.style,
val = "right 10px bottom 10px"; val = "right 10px bottom 10px";


Modernizr.addTest('bgpositionfourvalues', function(){ Modernizr.addTest('bgpositionshorthand', function(){
eStyle.cssText = "background-position: " + val + ";"; eStyle.cssText = "background-position: " + val + ";";
return (eStyle.backgroundPosition === val); return (eStyle.backgroundPosition === val);
}); });
Expand Down

0 comments on commit 1c0f5d1

Please sign in to comment.