No difference in behavior.
Also, I should mention that:
1) There may be more things I have to do in that customTextBoxStyle in the future than I'm doing now. Already I know that I will probably be changing it to:
and it may change even further in the future
2) I will have to switch between having this style for the TextBox in question, and removing it, programmatically, based on user actions. I'm given to understand that removeStyleName(
String) is not recommended and can have unintended side effects when doing so on a primary style name. To confirm, I temporarily added the new items to the style definition when trying setPrimaryStyle name... the border color setting only partially worked, if that makes sense.
But I digress - basically based on user action, I'll have to do addStyleName and removeStyleName for this style.
And I realize I'm somewhat rambling on a digressing topic because, ultimately, even using setPrimaryStyleName did not change the font color to black for the TextBox in IE8.