Mjml: Write `margin` in lowercase in styles

Created on 17 Jun 2019  路  2Comments  路  Source: mjmlio/mjml

Certain components (like mjml-section or mjml-button) generate Margin styles with an uppercase M.

This was useful historically for Outlook.com where CSS support depended on case. So margin:0 would get stripped by Outlook.com, but not Margin:0;. This is no longer the case (no pun intended) since the last versions of Outlook.com so it can be safely changed back to lowercase margin everywhere. This might be a small thing but it can be one less quirk to figure out for newcomers and make MJML look more up to date towards modern best practices.

See this bug report for more details.

All 2 comments

Some companies have clients working on older systems. Having backwards compatibility is a good thing in my opinion. Outlook has the capability to parse between the two.

Are you sure about that? My understanding was that every Outlook.com accounts were migrated to the new Office 365 type of accounts. Also there鈥檚 been two successive versions of Outlook.com where this bug has no longer been there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

valstu picture valstu  路  3Comments

lucasnantonio picture lucasnantonio  路  4Comments

bensreed picture bensreed  路  3Comments

liminspace picture liminspace  路  3Comments

hellfish2 picture hellfish2  路  4Comments