{"id":925,"date":"2014-10-24T20:46:07","date_gmt":"2014-10-24T20:46:07","guid":{"rendered":"http:\/\/freshinbox.com\/blog\/?p=925"},"modified":"2015-04-10T10:08:53","modified_gmt":"2015-04-10T10:08:53","slug":"webmail-css-support-letsfixemail","status":"publish","type":"post","link":"https:\/\/freshinbox.com\/blog\/webmail-css-support-letsfixemail\/","title":{"rendered":"Thoughts on Webmail CSS Support #Letsfixemail"},"content":{"rendered":"<p><a href=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/10\/webmail.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/10\/webmail.jpg\" alt=\"webmail\" width=\"325\" height=\"244\" class=\"aligncenter size-full wp-image-950\" srcset=\"https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/10\/webmail.jpg 325w, https:\/\/freshinbox.com\/blog\/wp-content\/uploads\/2014\/10\/webmail-300x225.jpg 300w\" sizes=\"(max-width: 325px) 100vw, 325px\" \/><\/a><\/p>\n<p>I\u2019ll be on a panel next week at <a href=\"http:\/\/inboxlove.com\/\" target=\"_blank\">Inbox Love<\/a> lamenting the lack of CSS support for email. Naturally I\u2019ve been thinking on what needs to be done to address this issue. For this post, I\u2019ll focus on the Webmail clients &#8211; Gmail, Yahoo! Mail and Outlook.com.<\/p>\n<p>The changes I\u2019d like to see from the Webmail camp can be boiled down to three things: Visibility, Consistency and Reliability. I would like us to get into the place where even though there may still be incomplete CSS support, email coders are finally able to know what they need to do for emails to render properly in Webmail &#8211; and not having to test, troubleshoot and dig around for answers on each platform.<\/p>\n<p>Here is my wish list:<\/p>\n<h4>1) Eliminate client specific quirks<\/h4>\n<p>Some of the quirks present in email clients make no sense and only confound email coders trying to create decent looking messages.<\/p>\n<p><b>Gmail:<\/b><\/p>\n<ul style=\"margin-top:-20px\">\n<li><a href=\"https:\/\/freshinbox.com\/blog\/gmail-can-has-style\/\">Support embedded styles<\/a> in Gmail mobile apps and stop stripping id\u2019s and classes from elements.<\/li>\n<li>Support the display:block style in elements (without the need to add <a href=\"http:\/\/www.emailonacid.com\/blog\/details\/C13\/12_things_you_must_know_when_developing_for_gmail_and_gmail_mobile_apps\" target=\"_blank\">!important<\/a>).<\/li>\n<li>Stop converting the height style to min-height.<\/li>\n<\/ul>\n<p><strong>Outlook.com<\/strong><\/p>\n<ul style=\"margin-top:-20px\">\n<li>Stop setting line-height to 142%<\/li>\n<li>Support background-image style<\/li>\n<\/ul>\n<p><b>Yahoo! Mail:<\/b><\/p>\n<ul style=\"margin-top:-20px\">\n<li>Fix that damn CSS processor that keeps <a href=\"https:\/\/freshinbox.com\/blog\/how-yahoo-mails-mangling-of-media-queries-affects-your-css\/\" target=\"_blank\">activating our mobile media queries<\/a><BR>(<b>Update:<\/b> Yahoo! <a href=\"https:\/\/freshinbox.com\/blog\/yahoo-mail-fixes-media-query-bug-yahoo\/\">fixed this<\/a> in early 2015. You get a gold star Yahoo! Mail!)\n<\/li>\n<\/ul>\n<p><BR><\/p>\n<h4>2) Common CSS support<\/h4>\n<p>Complete CSS support on Webmail is problematic because of the need to \u201csandbox\u201d the content within a window within the Webmail app. So I understand if absolute positioning and certain more exotic capabilities like CSS animation might be curtailed.<\/p>\n<p>However would it be too much to strive for consistent support across the three different clients? For reference here are CSS support lists managed by <a href=\"https:\/\/www.campaignmonitor.com\/css\/\" target=\"_blank\">Campaign Monitor<\/a> and <a href=\"http:\/\/templates.mailchimp.com\/resources\/email-client-css-support\/\" target=\"_blank\">MailChimp<\/a>.<\/p>\n<p>If a style is supported by two out of the three Webmail platforms, the platform that doesn\u2019t support the style should make a commitment to support it.<BR><BR><\/p>\n<h4>3) Universal override scheme<\/h4>\n<p>Its not surprising that the webmail clients often add their own flavor when rendering emails &#8211; such as link styles, line-heights and font sizes.<\/p>\n<p>However, sometimes we would prefer the emails to render a certain way across all clients, and doing so require the knowledge of \u201cmagic\u201d classes like ExternalClass, ReadMsg and yshortcuts.<\/p>\n<p>It would be nice if there was a universal method to override these changes, perhaps using a common class name like &#8220;.clientsstyle&#8221;. That way each webmail client can still add their flavor to their app, but when needed designers have a simple and straightforward way to setting them back.<BR><BR><\/p>\n<h4>4) Documentation, documentation, documentation!<\/h4>\n<p>Here\u2019s the rub. Google, Yahoo! and Microsoft all have pretty sizable developer programs for their email platforms. Gmail has <a href=\"https:\/\/developers.google.com\/gmail\/actions\/\" target=\"_blank\">Inbox Actions<\/a>, <a href=\"https:\/\/developers.google.com\/gmail\/gadgets_overview\" target=\"_blank\">Gadgets<\/a> and the <a href=\"https:\/\/developers.google.com\/gmail\/api\/overview\" target=\"_blank\">Gmail API<\/a>. Yahoo! Mail has the <a href=\"https:\/\/developer.yahoo.com\/mail\/\" target=\"_blank\">Yahoo Mail Web Service<\/a>, and Outlook has a plethora of Integration options for <a href=\"http:\/\/blogs.office.com\/2014\/03\/03\/create-apps-for-office-365\/\" target=\"_blank\">Office365<\/a>, <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/hh826535.aspx\" target=\"_blank\">Outlook.com<\/a> and <a href=\"http:\/\/msdn.microsoft.com\/en-US\/library\/dn600185(v=exchg.150).aspx\" target=\"_blank\">Exchange<\/a>. <\/p>\n<p>All of these programs come with very good documentation.<\/p>\n<p>However, none of these platforms have any documentation on how email messages are processed and rendered. As email coders we have to resort to 3rd party resources to navigate the various email client nuances.<\/p>\n<p>Whats with the double-standards? Are email coders seen as less worthy of support than app developers?<\/p>\n<p>Perhaps they prefer to keep the bad email senders in the dark? Well that is just <a href=\"http:\/\/en.wikipedia.org\/wiki\/Security_through_obscurity\" target=\"_blank\">Security through obscurity<\/a>. The bad guys can figure this all out by themselves the only outcome is tons of wasted hours troubleshooting email whenever a webmail platform makes some random change in the way emails are rendered.<\/p>\n<p>Microsoft, Google and Yahoo! we would REALLY be grateful if you would start to provide some documentation on your email processing and rendering process &#8211; and the first one to do so would get a collective cheer of gratitude from the email community.<BR><BR><\/p>\n<p><strong>Comments?<\/strong><\/p>\n<p>So thats my wish list. All I\u2019m asking for is a bit more visibility, consistency and reliability around how Webmail handles email especially when it comes to CSS. Feel free to chime in in the comments if you feel the same or if you have other thoughts and ideas! <a href=\"http:\/\/letsfixemail.com\">#Letsfixemail<\/a> !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019ve been thinking on what needs to be done to address this issue. For this post, I\u2019ll focus on the Webmail clients \u2013 Gmail, Yahoo! Mail and Outlook.com&#8230;<\/p>\n","protected":false},"author":2,"featured_media":955,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,46],"tags":[],"_links":{"self":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/925"}],"collection":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/comments?post=925"}],"version-history":[{"count":46,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/925\/revisions"}],"predecessor-version":[{"id":1649,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/posts\/925\/revisions\/1649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media\/955"}],"wp:attachment":[{"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/media?parent=925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/categories?post=925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freshinbox.com\/blog\/wp-json\/wp\/v2\/tags?post=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}