summaryrefslogtreecommitdiff
path: root/source/bower_components/modernizr/feature-detects/css-backgroundsizecover.js
blob: dd7e51b0ddea88e1d531f8f33dfd6d02ba84affe (plain)
1
2
3
4
5
6
7
8
9
10

// developer.mozilla.org/en/CSS/background-size

Modernizr.testStyles( '#modernizr{background-size:cover}', function( elem ) {
	var style = window.getComputedStyle ?
		window.getComputedStyle( elem, null )
		: elem.currentStyle;
		
	Modernizr.addTest( 'bgsizecover', style.backgroundSize == 'cover' );
});