Bug 83536 - Exports fixed with tables to HTML even when size is relative.
Summary: Exports fixed with tables to HTML even when size is relative.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.5.2 release
Hardware: All All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2014-09-05 16:19 UTC by dE
Modified: 2025-10-06 03:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Original document includes table with relative width (8.87 KB, application/vnd.oasis.opendocument.text)
2021-05-18 07:03 UTC, Stéphane Guillou (stragu)
Details
Exported XHTML with LO 7.2 Alpha0 (4.97 KB, text/html)
2021-05-18 07:03 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dE 2014-09-05 16:19:58 UTC
Export the attached document (basically a new LO document with a table with relative width set to 100%) to HTML, and see the table with fixed width in a browser (zoom in, zoom out, width doesn't change).

Doing a save-as to HTML exports it correctly.
Comment 1 Buovjaga 2014-11-13 13:14:35 UTC
Reproduced.

From help:
Table - Table Properties - Table.
Enter the width of the table. This check box is only available if the Automatic option in the Alignment area is not selected.
Checked the Relative box.

The output is different between the xhtml export and html save as.
Xhtml export has td style="text-align:left;width:8.5cm; "
Html save as has td width="50%"

Win 7 64-bit Version: 4.4.0.0.alpha2+
Build ID: b021b5983c62e266b82d9f0c5c6d8d8900553827
TinderBox: Win-x86@39, Branch:master, Time: 2014-11-12_01:10:08
Comment 2 QA Administrators 2015-12-20 16:06:32 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2017-01-03 19:46:08 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2019-12-03 14:20:26 UTC Comment hidden (obsolete)
Comment 5 Stéphane Guillou (stragu) 2021-05-18 07:03:10 UTC
Created attachment 172109 [details]
Original document includes table with relative width

Confirmed in current 7.2 Alpha.

Steps to reproduce:

1. Create new table
2. Select whole table
3. Table > Properties > Table > Alignment: Left
4. Tick "Relative" next to "Width"
5. Set Width to 50%
6. File > Export > XHTML

Or with example ODT attachment, open and export to XHTML.

Source code does contain "width="50%"" in the table tag, but something must be overwriting it.

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 6b09276d157abada74e1a4989700139167207778
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-05-14_04:32:30
Calc: threaded
Comment 6 Stéphane Guillou (stragu) 2021-05-18 07:03:48 UTC
Created attachment 172110 [details]
Exported XHTML with LO 7.2 Alpha0
Comment 7 QA Administrators 2023-10-06 03:20:03 UTC Comment hidden (obsolete)
Comment 8 Stéphane Guillou (stragu) 2023-10-06 13:14:54 UTC
Still reproduced in recent trunk build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f95c3994f0b6a82a3bc2ddfb68822b74479ae185
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

With attachment 172110 [details], issue is that, even though it has the parameter width="50%", the table uses class="table-Table1" which has fixed width in <style>:

    .table-Table1{ width:8.5cm; margin-left:0px; margin-right:auto;}
Comment 9 QA Administrators 2025-10-06 03:11:53 UTC
Dear dE,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug