Community Forum

Over the years we have built up a community of email marketers, coders and designers that live and breathe email.

Use the Email on Acid Forum like your virtual water cooler: Stop by to discuss email code, quirky clients and fixes and post your issues (with an example of the code) for our community to offer its assistance.

<style> tags still being stripped in Gmail previews?


Total Posts:  1
Posted: 09 February 2018 11:55 AM

I just signed up with EOA and ran a test on an email. It appears as though the <style> tags are being stripped in the Gmail previews (both iOS/Android apps and web), as all of the email that had inline styles rendered fine, but tags that are relying on the <style> tags are being rendered without those styles.

Gmail stopped stripping <style> tags quite some time ago, and indeed when I test the email by actually sending it to a Gmail account and view it for real, the styles are working—ergo the preview is incorrect. Is there some reason why the previews haven’t been updated to reflect this?

Attached are screenshots of the EOA Gmail web preview + the email in actually rendered in Gmail web. The same results happen with iOS/Android apps (broken in EOA preview, correct in actual apps).

I think I found what’s going on. I guess maybe the preview is using GANGA? Can anyone confirm? See here for more info:

Image Attachments