Created
September 26, 2012 23:46
-
-
Save rupl/3791354 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Same as rgba(), in fact, browsers re-map hsla() to rgba() internally, | |
// except IE9 who retains it as hsla | |
Modernizr.addTest('hsla', function() { | |
setCss('background-color:hsla(120,40%,100%,.5)'); | |
return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment