fix: a page-anchored cover graphic sits in front, at the page's own corner

Two compounding bugs on a title/back-page background image:
- its host paragraph picks up position:relative from the line-height
  rule, becoming the frame's containing block instead of the page and
  offsetting it by a full page margin — now forced back to static.
- the frame always painted behind text (z-index -1); a graphic that
  declares ODF's style:run-through="foreground" now paints in front,
  as LibreOffice draws it, via a new inFront attr round-tripped through
  ODF export/import.

Confirmed against LibreOffice's own render: the duplicated, ~2cm
displaced cover graphic now matches exactly.
This commit is contained in:
Steffen Becker committed 2026-08-11 23:48:52 +00:00
1 parent 64cc010f01
commit e58e8a180e
6 files changed
+55 -8

No files matched your search

+5 -1
View File
@@ -175,10 +175,14 @@
}
/* A page-anchored frame is placed from its page corner and is out of the flow, so the
paragraph the importer hoists it into reserves no space (image.ts). */
paragraph the importer hoists it into reserves no space (image.ts). !important: several
other paragraph rules below set their own `position: relative` (line-height shift, the
trailing-break spacer) — any of those would make this paragraph the frame's containing
block instead of the page, offsetting it by a page margin. */
.paper .tiptap p:has(> [data-anchor-page]) {
height: 0;
margin: 0;
position: static !important;
}
/* Paragraph "colored field" + rule line (paragraphBox.ts). Background-color and per-side