peterbe / premailer

Turns CSS blocks into style attributes
https://premailer.io
BSD 3-Clause "New" or "Revised" License
1.07k stars 188 forks source link

Feature Request: Emit Warnings For Using Bad Styles #118

Open speedplane opened 9 years ago

speedplane commented 9 years ago

It would be fantastic if premailer could warn you about using styles that are not supported by a majority of email clients.

Basically, if we could code in the data posted by campaignmonitor and emit a warning or raise an exception whenever premailer detects these unsupported styles are being used. This feature will make it much easier to make compliant email html templates and for debugging these email clients generally.

peterbe commented 9 years ago

Is that data available in a structure format? I don't think premailer can depend on scraping a website.

elidickinson commented 9 years ago

The unfortunately named EmailOnAcid offers a warning / optimization process as a service. It works OK, maybe not as useful as you might think. The rules are complicated and changing, and sometimes I'm using a style only supported by certain clients on purpose because I want to target some rule just to them.