Unplanned
Last Updated: 24 Nov 2026 10:48 by ADMIN
Babu
Created on: 20 May 2025 11:38
Category: WordsProcessing
Type: Bug Report
2
WordsProcessing: HtmlFormatProvider: Span background is lost when a styled span at an even nesting level contains a nested inline element

The background color of a span is lost during HTML import when a background-styled span at an even nesting level (2, 4, 6, etc.) contains another inline element such as <u>, <strong>, or another <span>. Text and other formatting may remain, while the background color disappears.

Example of problematic structure:

<span>
  <span style="background-color:#ffff00;">
    <u>Text with background</u>
  </span>
</span>

Workaround: Keep other formatting on its existing elements, but move background-color off the ancestor span. Put the background on a span directly around the text, avoiding the problematic style propagation from an ancestor span.

 

2 comments
ADMIN
Yoan
Posted on: 24 Nov 2026 10:48

Hello Christian,

Thank you for reaching out and for taking the time to provide this feedback.

I was able to reproduce the same results on my end. After further investigation, I can confirm that what you are experiencing is caused by the same underlying issue as the one previously reported. Because of this, I took the liberty of updating the title and description of the existing bug report to better reflect the root cause and broaden its scope to cover both the originally reported scenario and your case.

In the updated task, you can find the conditions under which the issue reproduces, along with a potential workaround that may help until a permanent resolution is available.

As a token of appreciation for bringing this to our attention, I have also updated your Telerik Points.

Please accept my apologies for any inconvenience this issue may be causing. If you would like to stay informed about future developments, you can subscribe to the bug report to track its progress and receive notifications whenever its status changes.

Thank you once again for your report and for helping us improve the product.

Regards,
Yoan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Christian
Posted on: 17 Nov 2026 15:12
We run into the same issue with Telerik.Documents.Flow 2026.2.519 (also 2026.4.1109), and it happens even without <strong> or <u>. Nested spans alone are enough:

<p><span style="font-size: 10pt;"><span style="background-color: rgb(255, 255, 0);"><span style="font-family: Arial;">Test</span></span></span></p>

After HtmlFormatProvider.Import, the run "Test" gets FontFamily = Arial and FontSize = 10pt, but no BackgroundColor, so the yellow background is missing in the exported DOCX.