Skip to content

Normalize font token whitespace in browser checks - #2268

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38051185604-font-reading
Oct 10, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38051185604-font-reading

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The stylesheet extraction in PR #2252 formatted the --sans and --mono font lists across lines. Two nightly browser checks compared those raw custom-property strings with normalized computed font-family values, so they failed despite the same families rendering. The checks now collapse whitespace in the declared lists before comparing, while retaining their assertions that code notes and keyboard hints use the intended faces.

Both cases failed in the main CI run and pass locally after the change (uv run pytest tests/test_render_anchors.py::test_code_is_colored_without_a_word_moving tests/test_render_options_addition.py::test_the_draft_binding_badge_and_send_press_share_the_row_end -q -n0).

The stylesheet extraction formatted the --sans and --mono lists across lines. Compare their normalized words with computed font-family while keeping the checks that code notes and keyboard hints use the intended faces.
@leaf-agent
leaf-agent merged commit a60275e into main Oct 10, 2026
4 of 5 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38051185604-font-reading branch October 10, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant