W3C home > Mailing lists > Public > public-htmail@w3.org > February 2014

Re: Include CSS in emails

From: Stefan Mies <stefan.mies@gmail.com>
Date: Wed, 5 Feb 2014 08:51:48 +0100
Message-ID: <CAOMFAkqHsi-te0Bz+TiJJONZJrKr0+Q+RGgukcVxznRmmSQBAA@mail.gmail.com>
To: Neil Jenkins <neilj@fastmail.fm>
Cc: HTML for Email Community Group <public-htmail@w3.org>
Hi Neil,

I agree, there will be a lot of obvious benefits, but in the other hand it
could become a lot of new issues. So what the point, if all CSS source
including in the file, the file size will be much bigger, but I think if
would be possible to use containers to design the content the source will
be a little bit smarter.

So at least we take a pass on <link rel="stylesheet" type="text/css"

Am 05.02.2014 02:26 schrieb "Neil Jenkins" <neilj@fastmail.fm>:

> On Tue, 4 Feb 2014, at 11:05 PM, Stefan Mies wrote:
> > Because an external style sheet is ideal when the style is applied to
> > many pages, not for only one page like an email.
> The main trouble with external stylesheets is the need to sanitise the
> CSS (at least in the webmail context) to prevent conflicts with UI
> styles, or security issues (remember you could put JavaScript in CSS in
> older versions of IE, *sigh*). It's possible to support, if the server
> downloads it, cleans it, and then passes it on to the client, but you
> have the same trouble as images (can be used for tracking) and it would
> have to happen out-of-band with the fetch of the rest of the email
> content, which makes all sorts of UI rendering issues harder. For these
> reasons, we don't currently support external stylesheets at FastMail,
> and I imagine most webmail vendors would join me in saying we'd rather
> they were avoided.
> Neil.
Received on Wednesday, 5 February 2014 07:52:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:54:17 UTC