import from la bonne adresse and first refactoring for ouidade.com
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
// developer.mozilla.org/en/CSS/background-repeat
|
||||
|
||||
// test page: jsbin.com/uzesun/
|
||||
// http://jsfiddle.net/ryanseddon/yMLTQ/6/
|
||||
|
||||
(function(){
|
||||
|
||||
|
||||
function getBgRepeatValue(elem){
|
||||
return (window.getComputedStyle ?
|
||||
getComputedStyle(elem, null).getPropertyValue('background') :
|
||||
elem.currentStyle['background']);
|
||||
}
|
||||
|
||||
|
||||
Modernizr.testStyles(' #modernizr { background-repeat: round; } ', function(elem, rule){
|
||||
|
||||
Modernizr.addTest('bgrepeatround', getBgRepeatValue(elem) == 'round');
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
Modernizr.testStyles(' #modernizr { background-repeat: space; } ', function(elem, rule){
|
||||
|
||||
Modernizr.addTest('bgrepeatspace', getBgRepeatValue(elem) == 'space');
|
||||
|
||||
});
|
||||
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user