[Libreoffice-bugs] [Bug 132739] New: HTML Document: Table borders disappear, because multiple style attributes are written within a single tag

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue May 5 19:21:04 UTC 2020


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

            Bug ID: 132739
           Summary: HTML Document: Table borders disappear, because
                    multiple style attributes are written within a single
                    tag
           Product: LibreOffice
           Version: 5.3.6.1 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: a.berg at science-computing.de

Description:
If you create a HTML document containing a table with cell borders and colored
cell background, LibreOffice writes multiple style attributes into every td tag
like this:
    <td width="33%" bgcolor="#5983b0" style="background: #5983b0"
style="border-top: 1px double #333333; border-bottom: 1px double #333333;
border-left: 1px double #333333; border-right: none; padding-top: 0.04in;
padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in">

The problem is, that LibreOffice itself and also Firefox simply ignore the
re-definition of style (the second style argument).

I'm not quite sure what the XHTML-specification says about this, but AFAIU it
should be one style argument containing both background and border styles.

At least LibreOffice should display the document the same way it looked like
before closing.

Steps to Reproduce:
1. Start soffice
2. "File" -> "New" -> "HTML Document"
3. "Insert Table", e.g. 3x3
4. Select the whole table, right click -> "Table Properties..." -> "Borders" ->
"Set Outer Border and All Inner Lines"
5. Select "Color": "Dark Gray 2", click "OK"
6. Select the whole table, set "Table Cell Background Color" e.g. to "Light
Blue 1"
7. Save the document as html file (watch the cell borders)
8. Close soffice
9. Open document with soffice or any modern web browser (take a look at the
borders now)

or

1. Take a HTML document containing a table with borders and cells with
background color created by LibreOffice 4.3.7.2.
2. Open this document with LibreOffice >= 5.3.6.1.
3. Change something, save.
4. Have your table borders disappear.

Actual Results:
Cell borders are shown wrong. Same in a modern web browser.

Expected Results:
The HTML document should be saved as displayed.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Latest known unaffected version: 4.3.7.2 (on CentOS 6).
In 4.3.7.2 the background color wasn't written in CSS, but only with the
bgcolor argument (see test_4.3.7.2.html).

Earliest known affected version: 5.3.6.1 (on CentOS 7).
Latest known affected version: 6.4.3.2.

Version: 6.4.3.2
Build ID: 6.4.3.2-1.fc32
CPU threads: 4; OS: Linux 5.6; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200505/c4316225/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list