fix: a page-anchored frame sits on its page instead of in the text

ODF text:anchor-type="page" is a cover graphic or a watermark: out of
flow, placed from its page's corner, behind the text. In flow, the two
full-page frames of a fixture's covers cost three pages.
This commit is contained in:
Steffen Becker committed 2026-08-10 07:38:54 +00:00
1 parent 2e70e47912
commit a350b8f59e
5 files changed
+82 -7

No files matched your search

+7
View File
@@ -161,6 +161,13 @@
margin-bottom: 0;
}
/* 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). */
.paper .tiptap p:has(> [data-anchor-page]) {
height: 0;
margin: 0;
}
/* Paragraph "colored field" + rule line (paragraphBox.ts). Background-color and per-side
borders are inline styles from renderHTML; a bordered block gets a little padding so the
text doesn't touch the rule (matches LibreOffice's fo:padding on such paragraphs). */