by zaphar · 11y ago · 0 comments
All of that just so that you can pretend an inherently text medium is actually a way to deliver web pages directly to users. This is a lot of work for questionable benefit to GMail's actual users as opposed to Email Marketers.
The other webmails rewrite ids and classes and prepend unique identifiers to prevent them from clashing with their own namespace (AOL is the only one that puts it in an iframe).
Interestingly Gmail webmail actually supports the style tag but strips out id and class selectors in them leaving element selectors - so they're actually doing some heavy duty parsing already.
As for it being an inherently text medium. I would say it depends on the recipient. Emails do not need to be web pages, but simple CSS styling can go a long way to ease readability in emails - especially in a long curated newsletter like Product Hunt.
There is no valid reason anymore for not iframe'ing your HTML emails any more. Browsers are consistent enough in rendering that you can achieve trivial cross-platform pixel perfection (font rendering aside).