https://bugs.documentfoundation.org/show_bug.cgi?id=101384

Logan B <log...@psotago.org.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |log...@psotago.org.nz
     Ever confirmed|0                           |1

--- Comment #7 from Logan B <log...@psotago.org.nz> ---
I can safely replicate this bug using Word 2003 to create a .doc file and Word
2016 to create a .docx file where each contain a table that is 1 cell wide and
2 cells deep, where the first cell has a background colour.

When opening these files with LibreOffice Writer 5.3.0.3 and exporting as HTML,
the background colour is added as a separate style attribute in the <td> so it
appears as, for example:
<td width="585" valign="top" bgcolor="#d0cece" style="background: #d0cece"
style="border: 1px solid #00000a; padding-top: 0cm; padding-bottom: 0cm;
padding-left: 0.2cm; padding-right: 0.19cm">
The first style attribute is parsed by browsers, showing the background colour,
and the second style attribute, containing the border colour and padding, is
ignored.

I have attached the files produced by both versions of Word and the HTML output
by LibreOffice.

When exporting a .odt created using LibreOffice Writer 5.3.0.3 and recreating
the above table, the styles appear all in the same style attribute.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to