fix: pagination measures a text box's own spacing

The atomic leaf a text box becomes carried neither its space above nor its space
below, so the fit test ignored both and a page top never dropped the space above
the way it does for a paragraph. The box's space rides --space-top, which the
page-top decoration zeroes — the rotor centres itself in the padding box and has
to follow it.
This commit is contained in:
Steffen Becker committed 2026-08-10 19:35:09 +00:00
1 parent 71ecc17a9e
commit b134911e7b
3 files changed
+19 -9

No files matched your search

+2 -2
View File
@@ -387,8 +387,8 @@
position: absolute;
left: 50%;
/* Centred in the padding box, so half the space above has to come back to keep the
frame itself below it. */
top: calc(50% + var(--space-before) / 2);
frame itself below it — the *applied* space, which a page top drops. */
top: calc(50% + var(--space-top, 0px) / 2);
box-sizing: border-box;
transform: translate(-50%, -50%);
}