Skip to content

v0.3.0

Choose a tag to compare

@diomalta diomalta released this 28 Oct 12:21
c40b3c2

vellora 0.3.0

The native renderer now runs on Blitz 0.3.0-beta.4 from crates.io. Its fidelity is measured word by word against Chrome for Testing 155, and a strict oracle contract gates every change.

Measured against vellora 0.2.0 (9 document fixtures, reference Chrome 155 print-to-PDF, macOS arm64)

  • Fixtures with every word within 1 mm of Chrome: 0/9 → 8/9. The ninth, oss-postmark-receipt, is at 97.2%.
  • Worst per-fixture median word-position error: 106.22 mm → 0.21 mm.
  • Fixtures whose page count equals Chrome's: 6/9 → 9/9.
  • WPT reftests passed: 2,578 → 4,553 of 8,047. This measures coverage of the CSS test subset, not quality.
  • Cross-OS: vellora PDFs are byte-identical on macOS and Linux arm64.

Method and the full table, with losses: https://diomalta.github.io/vellora/guide/fidelity#measured-fidelity

New

  • Floats. 0.2.0 compiled Blitz without its floats feature, so floats rendered as in-flow blocks.
  • Multi-column layout, ruby, break-after/break-before, and table fragmentation across pages.
  • Table captions and anonymous table boxes.
  • Inline <svg> drawn natively as PDF vectors.
    • External <image> sources are rejected.
    • Layout never reads host fonts.
  • Painting:
    • the canvas background fills every page;
    • dashed and dotted borders;
    • link underlines.
  • Compensations for documented Blitz bugs. Each has a code comment and a canary test so it can be removed when Blitz fixes the bug.

Notes

  • The macOS arm64 addon grows from 20.5 MB to 28.7 MB (inline SVG support).
  • Known gap: a multicol container taller than a page is not split across pages (#48).