Live data from Hacker News

Gmail will now support CSS media queries

googleappsdeveloper.blogspot.com

1–10 of 70 posts

Re: Gmail will now support CSS media queries

#6
post #2

Does anyone know why it took them so long to do this?

I'd bet part of it was making sure that it wouldn't leak information. They've spent a good deal of time on that in the past few years (images in email are fetched by google, rather than your browser). If done incorrectly it could be used to help fingerprint the email client in some way (screen size, which queries are listened to, etc.) which could enable another email to be sent that attacks a vulnerable device (think stagefright like media attack).

Re: Gmail will now support CSS media queries

#7
This is mostly a distraction, but I still wish text/enriched had won instead of HTML email: https://en.wikipedia.org/wiki/Enriched_text

If only because it's simpler, so it might have been more fully and consistently supported (and it's not a security nightmare).

Re: Gmail will now support CSS media queries

#8
post #2

Does anyone know why it took them so long to do this?

They've historically been very restrictive about what they do and don't allow in emails—iirc, they even stripped CSS blocks entirely until recently. Even now they only accept a specific list of properties, selectors, and queries.[1] My impression is it's broadly in the name of security: if you allow arbitrary content inside a Google webpage, it's easy to imagine phishing running amok.

[1]: https://developers.google.com/gmail/design/css

Re: Gmail will now support CSS media queries

#10

This is mostly a distraction, but I still wish text/enriched had won instead of HTML email: https://en.wikipedia.org/wiki/Enriched_text If only because it's simpler, so it might have been more fully and consistently supported (and it's not a security nightmare).

Regarding the example in the Wiki page: Is it possible to use hex colors codes or rgb color codes? The example uses color name.
Post reply on HN