hteumeuleu / email-bugs

Email quirks and bugs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

hteumeuleu opened this issue · comments

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>

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.