Opera Border Radius in 2010?

3 Responses · September 12, 2009

Opera has been maybe the most standards-conscious browser over its life­time. This has resulted in frus­tra­tion among users, who believe it to be “bro­ken” because it doesn’t ren­der lazy code cor­rectly — code that takes advan­tage of the for­give­ness of other browsers, allow­ing you to write slop­pily and get away with it.

But it has also resulted in frus­tra­tion among web devel­op­ers, who are impa­tient at Opera’s reluc­tance to adopt any stan­dards that haven’t been laser-etched into plat­inum tablets down in the W3C’s base­ment foundry. Among them is the border-radius prop­erty, an effect that will prob­a­bly be out of vogue any­way by the time Opera’s Presto engine imple­ments it. Of course, since CSS3 has been kicked around the W3C offices since 1999, and border-radius itself since 2001, most other engines (Gecko, WebKit, KHTML) stopped wait­ing and began invent­ing their own prop­er­ties for this effect. Presto has not.

In the course of remind­ing myself of this lam­en­ta­ble fact by search­ing for workarounds today, I noticed that some Opera devel­op­ers are casu­ally drop­ping hints that the full-blown, unqual­i­fied, W3C-crafted border-radius itself has made an appear­ance in Presto 2.3, and that the next ver­sion of Opera will be pow­ered by 2.4.

It’s all true, I saw it on Twit­ter.

I have been play­ing with this today, and it is true. I have the lat­est ver­sion of Opera on Win­dows and have suc­cess­fully used border-radius with­out a ven­dor pre­fix. It uses the spe­cific cor­ner ver­sions that webkit does rather than the way mozilla does (these do the same thing, first if mozilla, sec­ond in opera):

–moz-border-radius-topleft: 200px 300px;
–moz-border-radius-topright: 200px 300px;
–moz-border-radius-bottomleft: 200px;
–moz-border-radius-bottomright: 200px;
border-top-left-radius: 200px 300px;
border-top-right-radius: 200px 300px;
border-bottom-left-radius: 200px;
border-bottom-right-radius: 200px;

Georgina · June 18, 2010

Thank you Opera. Now all my uses of the stan­dard won’t have been for nothing.

Jay · June 18, 2010

So… hang on, among all these ven­dor pre­fixes I’ve been see­ing… you mean to tell me “-o-border-top-left-radius:” was just a waste of space? And that Presto never had a vendor-specific exten­sion for border-radius…?

Man, what a waste of 26 bytes.

Alhadis · July 14, 2010

Leave a Comment or Subscribe