Skip to content

Commit

Permalink
Added support for CSS3 background-size.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Shaw authored and paulirish committed May 21, 2010
1 parent 0f5939e commit 66e63c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ window.Modernizr = (function(window,doc,undefined){
rgba = 'rgba',
hsla = 'hsla',
multiplebgs = 'multiplebgs',
backgroundsize = 'backgroundsize',
borderimage = 'borderimage',
borderradius = 'borderradius',
boxshadow = 'boxshadow',
Expand Down Expand Up @@ -365,6 +366,11 @@ window.Modernizr = (function(window,doc,undefined){
// (however, commented) in for clarity, yet functionally they are
// no longer needed.


tests[backgroundsize] = function() {
return test_props_all( background + 'Size' );
};

tests[borderimage] = function() {
// set_css_all( 'border-image:url(m.png) 1 1 stretch' );
return test_props_all( 'borderImage' );
Expand Down

0 comments on commit 66e63c1

Please sign in to comment.