I have been using the following code:
if (
($.browser.msie && parseFloat($.browser.version) < 7) || // IE 6 and lower
($.browser.mozilla && parseFloat($.browser.version) < 1.9) || // Firefox 2 and lower
($.browser.opera && parseFloat($.browser.version) < 9) || // Opera 8 and lower
($.browser.webkit && parseInt($.browser.version) < 400) // Older Chrome and Safari
) {
// document.location.href = 'old-browsers.html?redirect=' + escape(document.location.href);
}
But this seems to not work for Chrome. Now I would like to replace it with some code using feature detection. I was looking at modernizr but this seems just to add a class to my html and it also creates quite a lot of javascript even for just this one check.
Is there an easy way that I could check if my browser supports the CSS HTML5 border-radius property?