Count image height in float content

VerticalItem::Image was missing from Float::content_height, so image floats
reported zero content height and could overlap following text. Include the
image height and add a regression test.

Test count is 1074.
This commit is contained in:
gloamxun committed 2026-10-27 23:21:52 +08:00
1 parent c2310d85ac
commit 16dd2e1f62
5 files changed
+33 -7

No files matched your search

+3 -3
View File
@@ -16,11 +16,11 @@ cargo test --workspace --offline
or run `./scripts/verify-route-d.sh`, which executes both.
The workspace currently passes **1073 tests**:
The workspace currently passes **1074 tests**:
| Suite | Tests |
| --- | --- |
| route-D unit (engine) | 444 |
| route-D unit (engine) | 445 |
| engine binary unit | 434 |
| server integration | 67 |
| v1 integration | 71 |
@@ -29,7 +29,7 @@ The workspace currently passes **1073 tests**:
| engine/core unit | 4 + 1 |
Latest full run (web trial increment): `./scripts/verify-route-d.sh` passes
with fmt clean and **1073 tests** green.
with fmt clean and **1074 tests** green.
Latest live check (2026-10-27): the debug server served `examples/hello.tex`
from `target/debug/texrra serve`; `POST /preview` answered 200 with