There seems to be no way to maintain a border radius except to provide CSS for each engine separately. Right now, it seems you need to declare the property three or four times (perhaps more if you want to support more obscure engines).
My intermediate solution is to pass all my CSS through this regex:
Regexp:
border(-)?(top|bottom)?(-)?(left|right)?-radius:(.+?);
Replace:
-moz-border-radius$1$2$4:$5;
-webkit-border$1$2$3$4-radius:$5;
-khtml-border$1$2$3$4-radius:$5;
border$1$2$3$4-radius:$5;
It searches for all instances of the official CSS3 selector and replaces it with its own, as well as engine-specific selectors for Mozilla, WebKit and KHTML.
Is there a better way?
When are WebKit and Mozilla planned to support CSS3 selectors? (Do they already exist?)
source
share