On 21 Mar 2019, at 5:32, Pedro David Marco wrote:
Hi...
Any idea about how to detect white text over white background in HTML?
# grep -rC2 font_low_contrast
/var/spamassassin/3.004002/updates_spamassassin_org
/var/spamassassin/3.004002/updates_spamassassin_org/20_html_tests.cf-
/var/spamassassin/3.004002/updates_spamassassin_org/20_html_tests.cf-
/var/spamassassin/3.004002/updates_spamassassin_org/20_html_tests.cf:body
HTML_FONT_LOW_CONTRAST eval:html_test('font_low_contrast')
/var/spamassassin/3.004002/updates_spamassassin_org/20_html_tests.cf-describe
HTML_FONT_LOW_CONTRAST HTML font color similar or identical to
background
/var/spamassassin/3.004002/updates_spamassassin_org/20_html_tests.cf-
A quick peek at the code in Mail/SpamAssassin/HTML.pm shows that
Mail::SpamAssassin::HTML{'font_low_contrast'} is set to '1' if the
foreground and background colors are close or identical.