Open M-J-Robbins opened 2 years ago
I've tested the code with both lang="en"
and lang="fr"
same thing happens in both.
Not sure if this is ideal, but have you tried in-lining the background-color and used padding to achieve the desired spacing on the text?
When clicking the "View translated message" in Gmail, the content of the email is translated. But also the rendering changes as the CSS no longer matches the HTML.
Showing my original message Gmail is rendering
And styles
After clicking translate, the original email is set to
display:none
and a copy of the content is created adjacent to it asHere we can see the class
msg4527639058425575520
isn't included on the wrapping div. And the class on the h1 is changed fromm_4527639058425575520foo
tom_8895087920744474942foo
The CSS stays the same.This appears to be very similar to a previous issue Gmail incorrectly prefixes HTML when turning images on