hteumeuleu / email-bugs

Email quirks and bugs
538 stars 20 forks source link

T-Online removes the entire style attribute when using `table-layout:fixed` #109

Open hteumeuleu opened 2 years ago

hteumeuleu commented 2 years ago

The desktop webmail of T-Online.de removes the entire style attribute of an element when using table-layout:fixed. Other values like table-layout:auto or table-layout:inherit don’t trigger this bug.

The following code (sent with Putsmail):

<table bgcolor="red" style="margin:0 auto; width:100%; background:green;"><tr><td>A</td></tr></table>
<table bgcolor="red" border="0" style="margin:0 auto; width:100%; background:green; table-layout:auto;"><tr><td>B</td></tr></table>
<table bgcolor="red" border="0" style="margin:0 auto; width:100%; background:green; table-layout:fixed;"><tr><td>C</td></tr></table>

… is transformed into:

<table style="margin:0 auto; width:100%; background:green;" bgcolor="red"><tbody><tr><td>A</td></tr></tbody></table>
<table style="margin:0 auto; width:100%; background:green; table-layout:auto;" border="0" bgcolor="red"><tbody><tr><td>B</td></tr></tbody></table>
<table border="0" bgcolor="red"><tbody><tr><td>C</td></tr></tbody></table>
SpecOps12 commented 1 year ago

I experience a similar issue: t-online strips out my complete inline style from a span element, but it is not impressed, when I set the table-layout to any value. It also strips out the style of the table completely. Other inline styles are left untouched.