-
Notifications
You must be signed in to change notification settings - Fork 120
Table cell border rendering different between Outlook versions. #6521
Description
Provide required information needed to triage your issue
When adding a signature to Outlook on iOS with a partial colored cell border, it displays correctly but does not render the color when displayed in Outlook Classic on Windows.
As seen in Outlook iOS
The result seen in Outlook Classic Windows
Note - This doesn't happen when creating a message in New Outlook on Windows, but I have created a ScriptLab example that can be run in New Outlook in Windows or OWA that demonstrates the problem when viewing in the message in Outlook Classic.
More Information
The problem seems to be the changes that Outlook makes to the HTML after it is set, in this case to element.
Original HTML
<td align="left" style="padding:12px; border-top:none; border-right:none; border-bottom:none; border-left:solid 8px #F5F736; vertical-align:top; font-family:Calibri,Arial,sans-serif;">
Outlook on iOS 18.6 changes this to
<td dir="ltr" align="left" style="white-space: nowrap; border-width: medium medium medium 8px; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(245, 247, 54); padding: 12px; vertical-align: top;">
New Outlook and OWA can render this correctly, but Outlook Classic renders to cell border with the wrong color.
Your Environment
- Platform [PC desktop, Mac, iOS, Office on the web]: Source Platform iOS v18.6, Destination Windows 11.
- Host [Excel, Word, PowerPoint, etc.]: Source Outlook, Destination Outlook Classic
- Office version number: Source: v5.2605.0, Destination v2601 (Build 19628.20166 Click-to-Run)
- Operating System: Source iOS v18.6, Destination Windows 11
- Browser (if using Office on the web): n/a
Expected behavior
The color of table cell borders should render the same in all Outlook versions. This works for complete cell borders but not when a single side is specified.
Current behavior
The cell border is shown but is set to the color black when displayed in Outlook Classic. It does display correctly in New Outlook and OWA.
Steps to reproduce
I've created a ScriptLab example that demonstrates the problem using New Outook for Windows or OWA.
- In New Outlook or OWA, Run the Linked ScriptLab example that inserts a signature containing a
<table>and a<td>element where the cell has a colored left border. - The signature should show with a colored bar on the left hand side.
- Send the message and view it in Outlook Classic
- The the bar of the left-hand-side will have lost its color and display as Black.
Link to live example(s)
Example Email Messages
Display differently in New Outlook and Outlook Classic
Sent from Outlook iOS v18.6.eml
Sent from Outlook iOS v18.6.msg
Provide additional details
- Run the ScriptLab example in New Outlook or OWA (Windows although the original bug is for iOS)
- After running the script to add a signature with a colored bar on the left, send it to someone.
- Open the message in Outlook Classic.. the Colored bar seen in the original message will now display as Black.
Context
iOS customers are complaining messages aren't displaying correctly when sent from iOS.