I would like to test if a browser supports a CSS property. I know I can use modernizr to do this but I don't want to install an entire library to test for one property.

How does modernizr test for properties? Say I want to test for support for the background-size property.

I scanned through the properties of the document object but couldn't see anything that looked like it would help.

Any ideas or help would be great.