I was running some tests for another article when I encountered something in Yahoo Mail Beta which caused me some agony. When I uncovered the source of the problem, however, it became clear I could avoid it altogether. Allow me to share…
Yahoo Mail Beta omits all CSS declarations residing after a comment within a selector. Example:
/* my comment here */
Yahoo Mail Beta will render the color and background properties for this body selector while the margin property will be eradicated. I can only assume this process increases the security of this webmail client. (Ryan—if you’re reading and this is not the case, maybe you could bring it to the attention of to your boys in the back room?)
You can see how minor this is and how it can be avoided by simply not placing comments inside of a CSS declaration. But, again, I lost some time wondering why the properties I had in a style were not being rendered by Yahoo Mail Beta. I even cried a little. And no one should be made to cry. So enjoy this hot tip of the week.