jducoeur: (querki)
[personal profile] jducoeur
I just went to send a nicely-styled email through Querki, and was distressed to find that it *completely* failed. I had figured that email support wouldn't be complete CSS, but absolutely nothing stylistic happened.

A bit of research, and what do I find? It turns out that many mail readers (including, notably, Gmail) simply do not support modern CSS in the slightest. You can't do anything with real stylesheets -- you have to go back to 1990's styling, with explicit inline styles everywhere.

Of course, Querki was built to modern spec -- it *thinks* in terms of stylesheets, and exposes and uses styles that way. There is, quite deliberately, no support for old-fashioned inline styles, since they are deprecated by most good style guides these days.

*Sigh*. Pain in the tuchus. I've added style support in email to the to-do list, but folks should note that it'll be a fair while before it happens -- it's going to be a lot of work to make it work even minimally, and email is very much a "because we have to" feature. For now, Querki-sent email will necessarily be fairly plain...

(no subject)

Date: 2013-09-02 07:34 pm (UTC)
ext_81047: (Dr. Morden clone #187)
From: [identity profile] kihou.livejournal.com
Heh, with that subject line, I was expecting you were going to be complaining about modern email that can't be read in plain text clients. ^_^

I sorta wonder how you could support non-inline CSS in Gmail without security holes. iframes, I guess?

(no subject)

Date: 2013-09-03 09:41 pm (UTC)
ext_81047: (Default)
From: [identity profile] kihou.livejournal.com
I mean, CSS doesn't have scoping. For a web client like gmail that inserts email content into a broader HTML page, you'd obviously not want email to be able to change the style of parts of the page external to the email. If you don't use an iframe, this means you probably have to rewrite the CSS classes and ids in the email by adding some particular prefix. Which wouldn't be that hard, I guess.

(no subject)

Date: 2013-09-03 11:07 pm (UTC)
ext_81047: (Default)
From: [identity profile] kihou.livejournal.com
I guess you'd also have to do something clever to disable any CSS that'd set something like a background image (or anything else that makes an external request) until the user chooses to allow background images, though I guess maybe the inline CSS support already deals with that.

(no subject)

Date: 2013-09-17 05:36 pm (UTC)
laurion: (Default)
From: [personal profile] laurion
Email, in retrospect, is such a poorly designed system for the modern era. No reliable formatting (I still actively prefer plaintext most of the time), no real security, the illusion of reliability, and even now there are struggles with manageability, and spam, no matter how good the Google (or other) tools are.

[joking] You could always have the system generate a PDF and send it as an attachment. Email has no interactivity beyond html links, and a PDF is just as good. [/joking]
Edited Date: 2013-09-17 05:37 pm (UTC)

(no subject)

Date: 2013-09-17 06:00 pm (UTC)
laurion: (Default)
From: [personal profile] laurion
I had them there from the start, but with angle brackets. So LJ stripped out hte unknown 'tags' to sanitize the input.

In retrospect, I should have known that would happen.

Profile

jducoeur: (Default)
jducoeur

May 2025

S M T W T F S
    123
45678910
11121314 151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags