Modernizr/Modernizr — pull request #527 by bastimeyer (2012-03-20 21:34:52+00:00)
Title: background-size:cover test returns wrong result in FF and Opera

Hello,
I've noticed a bug in the background-size:cover feature detection test...

The current implementation is testing for the value of the "background-size" key of the CSSStyleDeclaration object (getComputedStyle) to be equal to the string "cover". But the right name of this css property is "backgroundSize" and so the result of the test is wrong in all browsers except chrome. Here both keys "background-size" and "backgroundSize" exist and so there is no problem.

To fix this issue, simply change the key "background-size" to "backgroundSize".