Originally Posted by ubh
So as most of us know CSS3 brings the whole rounded corners controversy to an end with the CSS3 rule "border-radius". But how do I set a elements style with a border radius in DOM?
I mean, normally for things such as background colors you would do the following:
var box = document.getElementById("box");
but for a border radius how do I turn these into a DOM friendly statement like background color?
- first word is lower case, background-color is backgroundColor
-capitalize the words and remove invalid chars in identifier, -moz-border-radius is MozBorderRadius, first letter is upper because start with -moz, not moz.
in conclusion, is borderRadius?
PS: I'm not sure, I have impression that I read this somewhere