fix: draw sub/superscript at 58% and out of the line box
The browser's `smaller` + `vertical-align: super` grows every line holding a raised run by ~4px. LibreOffice keeps its raised run within 0.25pt of the plain line's box (measured off its PDF), and both exporters already write `style:text-position="super 58%"` — only the screen diverged. The same three declarations already sit on the footnote anchor. Scoped to the paper, since a header/footer zone carries the marks and its height is reserved off the page. Measured: a table LibreOffice fits above the page edge now fits here too, instead of moving to the next page.
This commit is contained in:
1 parent
1424d7c23f
commit
c115b11c8d
2 files changed
+9
-1
No files matched your search
@@ -161,6 +161,14 @@
|
||||
padding: 0.04cm 0.08cm;
|
||||
}
|
||||
|
||||
/* Both exporters write style:text-position="super 58%": that size, and a zero line
|
||||
height so the raised run stays out of the line box, as it does in LibreOffice. On
|
||||
the paper, not the body — a header/footer zone carries the marks and is reserved. */
|
||||
.paper :is(sup, sub) {
|
||||
font-size: 58%;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
/* Hyperlinks (link.ts). Ctrl/Cmd+click opens them (Editor.svelte). */
|
||||
/* The browser's own link colour is off first: a link Word left unstyled is drawn like the
|
||||
text around it, since there the blue is a character style, not a property of being a
|
||||
|
||||
Reference in new issue
Block a user