Commit Graph
5 Commits
Author SHA1 Message Date
mozempk 5d27417c54 fix(render): resolve ink contrast per surface, not once per poster
templates/lib.typ gains WCAG luminance/contrast-ratio/ink-on and a
surface-aware palette-of(). framed and split place type on flat colour and
were inheriting an ink measured against the artwork, rendering white on
cream at 1.15:1. Now computed per surface: 18.34:1 on the regression
fixture. Accent held to the same bar with fallback to ink.

Adds tests/contrast-check.typ, run per fixture by the harness.
35/35 render combos and 7/7 contrast assertions pass.
2026-08-27 09:33:08 +02:00
mozempk aad8a7fbdf tests: surface-contrast regression fixture (dark art + light bg) 2026-08-27 09:28:26 +02:00
mozempk 5fabf5345f tests: fix root-relative spec path; document ink-surface blocker 2026-08-27 09:25:34 +02:00
mozempk cf7f0aa386 tests: root-relative fixture paths + synthetic artwork 2026-08-27 09:16:48 +02:00
mozempk ae7ffd55b1 tests: golden-file fixture harness (accents, overflow, missing blocks, landscape) 2026-08-27 09:16:26 +02:00