prefers-color-scheme: dark, not functioning as expected

Originator:mark.robbins
Number:rdar://50578827 Date Originated:
Status:Open Resolved:
Product:Mail Product Version:12.4 (3445.104.8)
Classification:Bug Reproducible:yes
 
Summary:
When an HTML email is read using dark mode, the colours are edited to be inverted. This can cause accessibility issues and dramatic inconsistencies between the Apple Mail app and other email clients or when the email is viewed in Safari.

Steps to Reproduce:
Set preferences to dark mode.

Send an HTML email with the code @Media (prefers-color-scheme: dark) {body{background:#c00000;color:#ffffff}}.

Open the email in Apple Mail app.

Expected Results:
I'd expect the background of the body to be dark red and the text white, as it is when opened in Safari.

Actual Results:
The media query is recognised and read but all colours in the HTML are "auto corrected".  So the black background now becomes pale red and the text black.

Version/Build:
OS 10.14.4 (18E226)
Mail Version 12.4 (3445.104.8)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!