With CSS, for compatibility reasons, you can define the same property twice in different formats.
For instance:
body {
/* Since this is defined first, it will apply for all browsers that don't support the next property. */
background-color: '#FFF';
/* Since this is defined last, it will apply for all browsers that support it, and hence will override the previous property. */
background-color: myFancyColorFunction();
}
Is there any way I can define two of the same properties as inline-CSS via JavaScript?