hteumeuleu / email-bugs

Email quirks and bugs
528 stars 20 forks source link

Outlook.com adds "Joyful Animations" #59

Open hteumeuleu opened 5 years ago

hteumeuleu commented 5 years ago

About six months ago, Microsoft introduced a new feature in Outlook.com called "Joyful Animations". It is turned on by default but can be turned off per user settings. According to Microsoft:

Outlook automatically shows a celebratory burst of colorful shapes in the reading pane when you open a message that includes words like Happy Birthday and Congratulations.

Screenshot of Outlook.com settings showing the Joyful Animations option

The feature highlights certain keywords with a different background color and text color. When hovering the keywords, a confetti animation appears.

An example of confetti animation in Outlook.com

Based on the owa.ReadingPane.mail.js file on Outlook.com, this only applies to three expressions (not case sensitive):

The following code in an email:

<h1 class="foo">Congratulations</h1>

…will be transformed by Outlook.com into:

<h1 class="x_foo"><span data-markjs="true" class="markim8ebdahz _2Th5e9ZyZUAFfXZXt-uLkQ">Congratulations</span></h1>

I haven't found a way to prevent this transformation. However, the styles can be overrided by adding the following rule:

<style>
[class="x_foo"] span { background: inherit !important; color:inherit !important; }
</style>
truongoi commented 3 years ago

Hey, the issue is still happening with that