vivliostyle/vivliostyle.js

Missing image elements

Closed this issue · 3 comments

Describe the bug
Under some circumstances, image elements are missing in the paginated HTML output.

To Reproduce
Paginate the attached document with Vivliostyle v2.30.4

Expected behavior
The paginated output should contain an image at the bottom of the first page like in this screenshot.

expected

Actual behavior
The paginated output contains an empty area where the image should be:
actual

Desktop:

  • macOS 15.0.1
  • Safari 18.0.1

Additional context
If you remove the span element (by removing lines 25 and 32 from the HTML input file), the pagination is working correctly.

VivliostyleBug.zip

@depth42 Thank you for reporting the issue. I am investigating it and found that this problem (float box near page bottom may disappear if the float element and its sibling elements have parent inline element) existed since very old versions of vivliostyle.

Thank you for fixing this so fast. It now works fine.