Sha256: a21da61f4feb30f104a9ef9d92e6891be7efa6f2602421861013061ea46bb398
Contents?: true
Size: 694 Bytes
Versions: 144
Compression:
Stored size: 694 Bytes
Contents
// 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'); }); })();
Version data entries
144 entries across 144 versions & 7 rubygems