alexdunae/premailer — Issue #91: CSS border shorthand causes issues in Outlook 2007/2010
Author: egid
Created: 2011-10-24 18:06:54+00:00
State: open

Premailer is collapsing border attributes into shorthand (which I didn't even know existed! cool.) that is working in the majority of clients. It fails, however, in Outlook 2007 and 2010, turning the border black.

border-color: #efefef#dddddd#cccccc;
border-style: solid;
border-width: 1px 1px 2px;

I have done some testing, and even with shorthand that includes all four values for width and color (1px 1px 2px 1px, etc) it produces the same black border output. For maximum compatibility, it looks like shorthand should be avoided when collapsing CSS.