12345678910111213141516171819202122232425262728293031 |
-
-
-
-
-
- (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');
-
- });
-
-
- })();
|