Line Height Validation — Controlled Branch
Validates that ENABLE_PDF_GRID_LINE_HEIGHT=true produces Writer = PDF page count across all five test fixtures. PDF renderer is untouched. Geometry is untouched. Pagination is untouched.
✓ ENABLE_PDF_GRID_LINE_HEIGHT = true — Browser CSS lineHeight uses PDF ratio (× 1.5714). PDF renderer unchanged.
Writer column — page count from composition engine (paginateItems), no DOM measurement.
PDF Renderer column — live output of generateParityTestPDF backend (unchanged, uses resolvePdfSizeConfig × 1.5714).
MATCH = Writer page count = PDF page count. PASS = matches Gold Standard artifact. Gold Standard for Test 11: 3 pages. Test 16: 5 pages.
Test 11 — Angel / LB / largeGold Standard: 3 pages
Browser CSS — fontSize: 16px lineHeight: 1.57 fontFamily: 'Libre Baskerville', Georgia, serif FLAG: PDF_GRID ✓
Writer
1
pages (composition engine)
lineHeight in use: 1.57
Verdict
Run PDF renderer to compare
Test 16 — Angel / LB / large (long letter)Gold Standard: 5 pages
Browser CSS — fontSize: 16px lineHeight: 1.57 fontFamily: 'Libre Baskerville', Georgia, serif FLAG: PDF_GRID ✓
Writer
1
pages (composition engine)
lineHeight in use: 1.57
Verdict
Run PDF renderer to compare
Blue Floral / LB / size 16
Browser CSS — fontSize: 14px lineHeight: 1.57 fontFamily: 'Libre Baskerville', Georgia, serif FLAG: PDF_GRID ✓
Writer
1
pages (composition engine)
lineHeight in use: 1.57
Verdict
Run PDF renderer to compare
Tropical Beach / LB / size 16
Browser CSS — fontSize: 14px lineHeight: 1.57 fontFamily: 'Libre Baskerville', Georgia, serif FLAG: PDF_GRID ✓
Writer
2
pages (composition engine)
lineHeight in use: 1.57
Verdict
Run PDF renderer to compare
Angel / LB / size 16 (numeric)
Browser CSS — fontSize: 14px lineHeight: 1.57 fontFamily: 'Libre Baskerville', Georgia, serif FLAG: PDF_GRID ✓
Writer
1
pages (composition engine)
lineHeight in use: 1.57
Verdict
Run PDF renderer to compare
Success criterion: All five fixtures show MATCH between Writer and PDF. Test 11 must show PASS (3 pages). Test 16 must show PASS (5 pages). If any MISMATCH persists, set ENABLE_PDF_GRID_LINE_HEIGHT = false to roll back instantly.