Created
August 16, 2011 12:56
-
-
Save martinbalfanz/1149007 to your computer and use it in GitHub Desktop.
Modernizr tests to trigger webkit and opera
This file contains 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
/* tests for webkit and opera to fix styling bugs :@ */ | |
Modernizr.addTest('opera', function () { | |
return /Opera/.test(({}).toString.call(window.opera)); | |
}); | |
Modernizr.addTest('webkit', function () { | |
return Modernizr.testProp('-webkit-box-shadow'); | |
}); | |
/* css to trigger webkit | |
* | |
* @media screen and (-webkit-min-device-pixel-ratio:0) { | |
* | |
* } | |
* | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a touch more precise: