good-email-code icon indicating copy to clipboard operation
good-email-code copied to clipboard

Picture with prefers-color-scheme: dark and Outlook

Open suntandan opened this issue 1 year ago • 1 comments

Hi,

It seems Outlooks top banner for "you don't often get email from xxx" (don't know what it's called, sorry) interferes with the prefers-color-scheme: dark in the code. When sending a test to my work account (Microsoft Exchange) and I open the email on iOS, I receive the banner from Outlook. The image doesn't react to dark mode and it shows the light mode version instead, but if I test with any other account it works fine.

<picture>
  <source srcset="dark-img.png" media="(prefers-color-scheme: dark)">
  <img src="light-img.png" alt="Alt Text!" style="">
</picture>

suntandan avatar Jan 16 '24 12:01 suntandan

That's a strange one, I'm struggling to reproduce as I do often get emails from all my test addresses. Will have a think and work on it when i get more time

M-J-Robbins avatar Mar 14 '24 10:03 M-J-Robbins