tests: surface-contrast regression fixture (dark art + light bg)

This commit is contained in:
mozempk
2026-08-27 09:28:26 +02:00
parent 5fabf5345f
commit aad8a7fbdf
8 changed files with 118 additions and 16 deletions
+8
View File
@@ -49,3 +49,11 @@ entry.
- Auto-fit: a 92-character title shrinks and wraps rather than overflowing.
- `split` genuinely adapts to landscape (art left / text right) rather than assuming portrait.
- 18/18 template × fixture combinations compile.
## Regression fixture for defect 1
`tests/fixtures/surface-contrast.json` pairs **dark artwork** (`/tests/art-dark.png`,
mean luminance ≈ 0.05) with a **light background** (`#f4efe6`) and sets
`ink_resolved: "#ffffff"`. No single ink can satisfy both surfaces, so any template that
puts text on flat colour while using the art-measured ink fails visibly. Once the fix
lands, every template must stay legible on this fixture.