Bug 99220 - EXPORT: HTML - Overlapping objects dont retain their positions
Summary: EXPORT: HTML - Overlapping objects dont retain their positions
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:html
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2016-04-11 11:12 UTC by vit
Modified: 2023-07-29 22:29 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
docx and html file (262.40 KB, application/zip)
2016-04-11 11:12 UTC, vit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vit 2016-04-11 11:12:41 UTC
Created attachment 124248 [details]
docx and html file

The result is displayed in one line
One of the pictures are not cropped.
Comment 1 Terrence Enger 2016-04-21 16:05:05 UTC
I see the reported behaviour on both Windows-vista (32-bit) and Linux.
However, I am not sure it is incorrect, so I am leaving status
UNCONFIRMED.

MSWord 2003 and recent LibreOffice render the attached .docx with the
images overlapping.  It is after I save that as .html and repopen that
the images are no longer overlapped.

I also tried older versions of LibreOffice.  My oldest LibreOffice on
Windows, when I tried to reopen my "saved-as" file, looped for several
minutes before I cancelled the job.  On Linux, 43max bibisect
repository version oldest, when I tried to reopen my "saved-as" file,
looped and the entire desktop was unresponsive; I cancelled
LibreOffice from the console.

Could the loss of cropping be the problem reported in tdf#42038?
Comment 2 vit 2016-05-01 21:33:01 UTC
libreoffice displayed overlapped in the image.
The generated html version displayed is not overlapped.
Why are there no errors?
Comment 3 Yousuf Philips (jay) (retired) 2016-10-17 06:45:09 UTC
Hi vit,

So the image with the red shape in the html output was actually a shape and libreoffice converted it into an image when exporting to html, but yes it didnt retain the position of the shape turned image over the image.

Version: 5.3.0.0.alpha0+
Build ID: 45a7137c6796f33fbf5b8f7cb64e293260d991cb
CPU Threads: 2; OS Version: Linux 3.19; UI Render: default; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-10-13_23:38:06
Locale: en-US (en_US.UTF-8); Calc: group
Comment 4 QA Administrators 2018-06-27 02:48:47 UTC Comment hidden (obsolete)
Comment 5 Terrence Enger 2018-06-30 18:31:45 UTC
Working on debian-buster in daily Linux dbgutil bibisect repository
version 2018-06-30, the saved .html still renders with two images
side-by-side on one line, so I deem the bug reconfirmed.
Comment 6 QA Administrators 2019-07-01 02:47:08 UTC Comment hidden (obsolete)
Comment 7 Terrence Enger 2019-07-31 15:13:27 UTC
Working on debian-buster in bibisect-linux-64-6.4 sha 0d36b327
(committed to the bibisect repo 2019-07-29), the saved .html still
renders with two images side-by-side on one line, so I deem the bug
reconfirmed.
Comment 8 Stéphane Guillou (stragu) 2021-06-23 07:29:42 UTC
Reproduced with:

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: e3086b58eb5427d520b86c185f9d911bb6f7a3a0
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-06-21_15:37:11
Calc: threaded

and:

Version: 7.2.0.0.beta1 / LibreOffice Community
Build ID: c6974f7afec4cd5195617ae48c6ef9aacfe85ddd
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Note that exporting to XHTML as an alternative doesn't help: the red shape disappears entirely.
Comment 9 QA Administrators 2023-06-24 03:14:35 UTC Comment hidden (obsolete)
Comment 10 Stéphane Guillou (stragu) 2023-07-29 22:27:25 UTC Comment hidden (obsolete)
Comment 11 Stéphane Guillou (stragu) 2023-07-29 22:29:57 UTC
(correction from previous comment)

Already the case in:

Version: 5.4.0.3
Build ID: 92c2794a7c181ba4c1c5053618179937228ed1fb
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk2; 
Locale: en-AU (en_AU.UTF-8); Calc: group

Also reproduced in 7.5.5.2.

Since 7.6, red shape is lost entirely, creating an invalid gif when saving as HTML. This regression is reported in bug 156525.