Created attachment 153348 [details]
Export the Writer document to html and have a look at the file with your browser.
Open the attached Writer-file.
There is a table, which has been formatted by Table > AutoFormat Styles...
Export this table to html or download the exported html-file.
The borders of the table doesn't appear in the exported html-file.
Here is one line of the code:
<td width="25%" bgcolor="#00599d" style="background: #00599d" style="border-top: none; border-bottom: 1px solid #00599d; border-left: none; border-right: none; padding: 0cm" sdnum="1031;0;@"><p align="left" style="font-style: normal; text-decoration: none">
1) background is defined twice, as bgcolor and as style.
2) the definition of styles appears two times so the first style-definition destroys the second style-definition. Second style-definition won't be recognized by the browser.
1) remove style="background: #00599d"
2) remove the old bgcolor-definition and set the background-style as part of the other styles: style="border-top: none; border-bottom: 1px solid #00599d; border-left: none; border-right: none; padding: 0cm; background: #00599d;"
Note: Good CSS-definition ends every time with ";".
This bug won't appear with LO 5.1.5, first appears here with LO 18.104.22.168 and also with LO 22.214.171.124 on OpenSUSE 15 64bit rpm Linux.
Created attachment 153349 [details]
Original saved as html from Writer - borders have gone.
Created attachment 153377 [details]
Created attachment 153378 [details]
Created attachment 153379 [details]
Problem and solution with "save as" (HTML4) without any aspects of HTML5 are little bit different from the OP. The expression "bgcolor" doesn't cause any problem here, and the (manual) solution is remove 'style="background: #......' with a texteditor using "regular expression".
This seems to have begun at the below commit.
Adding Cc: to Oliver Specht ; Could you possibly take a look at this one?
7957aec5c3c634ccfbdce0f25f57da477c84e13e is the first bad commit
Author: Jenkins Build User <email@example.com>
Date: Thu Dec 14 06:24:03 2017 +0100
author Oliver Specht <firstname.lastname@example.org> 2016-03-18 15:57:17 +0100
committer Oliver Specht <email@example.com> 2016-03-23 13:57:16 +0000
commit 46fa816aa0a713c54836b9689fa7a1c9ff55ef5a (patch)
parent f9cf53a082f1d99b313ebd09c8791541859eac40 (diff)
tdf#63211: saving embedded images to HTML optional