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:
1 parent
71ecc17a9e
commit
b134911e7b
3 files changed
+19
-9
No files matched your search
@@ -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%);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user