border-radius support and the CSS 3 Backgrounds and Borders module
Last week, the CSS 3 Backgrounds and Borders module became a Candidate Recommendation.
That means the specification is stable. Browser vendors can implement these features without a vendor prefix if they haven’t already.
border-radius support
Preceding to this move from Working Draft to Candidate Recommendation: support for border-radius (and border-top-right-radius, etc.) in Opera 10.5+ (current version is 11.01), Safari 5+ and Chrome 5+ (current version — as of February 12, 2011 — is 9.0.597.102 beta).
That means this*:
div{
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
}
Can safely become:
div{
-moz-border-radius: 10px;
border-radius: 10px;
}
Yep. You can drop -webkit- from your border-radius properties long as you don’t mind your sexy rounded corners not appearing in older versions of WebKit-based browsers (and you’ve been able to do so since June 7, 2010).
Versions of Opera prior to 10.5 didn’t support border-radius, even with a vendor prefix. Ditto Internet Explorer 7 and 8.
Internet Explorer 9 and Firefox 4 will both support border-radius. IE9 pushed its Release Candidate February 11, 2011. Firefox 4 released its 11th beta February 8, 2011.
* But the cool, forward-thinking kids were already including border-radius, even before Opera 10.5 supported it.