Bug 154960 - the position of the text of the text-box isn't right on *.xhtml export
Summary: the position of the text of the text-box isn't right on *.xhtml export
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
5.1.5.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2023-04-21 18:18 UTC by solar020
Modified: 2023-04-24 15:27 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
a *.svg export of test.odg results fine but a *.xhtml export of test.odg results wrong! (57.92 KB, application/vnd.oasis.opendocument.graphics)
2023-04-21 18:18 UTC, solar020
Details

Note You need to log in before you can comment on or make changes to this bug.
Description solar020 2023-04-21 18:18:50 UTC
Created attachment 186846 [details]
a *.svg export of test.odg results fine but a *.xhtml export of test.odg results wrong!

Simple explanation:
==================

  1. Open Libreoffice-Draw
  2. Insert an *.png image
  3. Insert a text-box and write the following text inside:
       https://en.wikipedia.org/wiki/Memory_card
  4. Drag the text-box inside/over the inserted image
  5. Export to *.xhtml

  Conclusion:
    Bug: In the *.xhtml export the text of the text-box appears below the image.
  
    But if you make a *.png export or a *.svg export of the same, the text of 
        the text-box appears where it should be 
       (note: in these exports there are no bugs). 




Detailed explanation:
====================

  1. Go to site: https://en.wikipedia.org/wiki/Memory_card
  2. Go to section of that site named: 
        "Overview-of-all-memory-card-types" -> "Comparison"
  3. With Firefox Web-browser do:
         right-mouse-click -> Take-Screenshot
     and screenshot that section of the site which is the same image 
     that was inserted in "test.odg" provided in attachment.
  4. Open Libreoffice-Draw
  5. Insert the *.png image resulted from screenshot.
  6. Insert a text-box and write the following text inside:
       https://en.wikipedia.org/wiki/Memory_card
  7. Drag the text-box inside/over the inserted image
  8. Export to *.xhtml

  Conclusion:
    Bug: In the *.xhtml export the text of the text-box appears below the image.
  
    But if you make a *.png export or a *.svg export of the same, the text of 
        the text-box appears where it should be 
       (note: in these exports there are no bugs).
Comment 1 Robert Großkopf 2023-04-22 06:29:38 UTC
Could confirm the buggy behavior: Text-Box appears after image.

Note: The text-box could also be placed first, not positioned in front of the image but before the image. Text-box will appear after the image also.

Its the same behavior in LO 5.1.5.2 - so might be inherited by OOo.

Note2: Since LO 7.1.5.1 the text box will appear two times under the image. Another bug, which doesn't happen up to LO 7.1.0.3…
Comment 2 Stéphane Guillou (stragu) 2023-04-24 15:27:22 UTC
Confirmed that text is always placed below the picture, even if the text box is moved way before the picture and there is now overlap.

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

(In reply to Robert Großkopf from comment #1)
> Note2: Since LO 7.1.5.1 the text box will appear two times under the image.
> Another bug, which doesn't happen up to LO 7.1.0.3…

Just bibisected and reported that other issue in bug 154989.