Live data from Hacker News

Gmail will now support CSS media queries

googleappsdeveloper.blogspot.com

11–20 of 70 posts

Re: Gmail will now support CSS media queries

#11
post #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.

It is indeed!

     Color
          causes the affected text to be displayed in a specified
          color. The "color" command requires a parameter that is
          specified by using the "param" command. The parameter
          data can be one of the following:

               red
               blue
               green
               yellow
               cyan
               magenta
               black
               white

          or an RGB color value in the form:

               ####,####,####

          where '#' is a hexadecimal digit '0' through '9', 'A'
          through 'F', or 'a' through 'f'. The three 4-digit
          hexadecimal values are the RGB values for red, green, and
          blue respectively, where each component is expressed as
          an unsigned value between 0 (0000) and 65535 (FFFF). The
          default color for the message is unspecified, though
          black is a common choice in many environments. When
          nested, the inner "color" command takes precedence.
(https://tools.ietf.org/html/rfc1896#page-5)

Odd that it's 96bpp colour, of all things.

Re: Gmail will now support CSS media queries

#13
It's a good start, and something that's very useful for people coding HTML emails.

That said, we still need to get this sort of thing in Microsoft Outlook, and both that and Gmail really need to support CSS to something of a normal standard, like with say Apple Mail or what not. There's no real reason email standards should be different to browser ones, except with the former not having Javascript included.

Re: Gmail will now support CSS media queries

#18
That is great. We use emarsys for marketing emails which extensively uses media queries to build a mobile specific version of your template.

The example they give with a YouTube email. I wonder if they decided to make the change because of internal pressure from those sending out marketing emails.

Post reply on HN