Repository navigation
Read an item hint's key face from the step box inside its chip - #423
Merged
Merged
Conversation
This was referenced Sep 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tests/test_render_anchors.py::test_one_key_keeps_one_keyboard_face_across_the_pagereads the geometry an item hint claims and compares it with the address chip and the chord's step keys. #421 moved that geometry:hintChipnow spells a hint's whole route as akeySequence, so the chip is the layer's positioned wrapper and the key face belongs to thekbdinside it. The same commit generalized the wrapper's reset —min-width: 0; height: auto; padding: 0; border: 0moved from.lf-goto-targets > .lf-chord-addressto every.lf-targets > .lf-target-hint— so the test's read of the chip returned a box with no width floor, no padding, and no border, against the address chip's19px/0 4px/1px solid.The test's claim still holds; only its address for the face was stale. It now reads
.lf-target-hint .lf-key-sequence > kbd:last-child, which is where the chord chips a dozen lines above are already read ({CHIPS} kbd:last-child), and it names the step still to be pressed so a hint that has already spent a letter compares the same face. Nothing in the runtime changes: the hints render correctly, and.lf-key-sequence > kbdinside the chrome scope gives them the shared key box.This is #421's own change reaching a nightly module it did not touch. CI runs nightly cases only in the modules a pull request touches, so
test_render_anchors.pyfirst ran under--run-nightlyafter main moved, in run 34168568905.Verified locally: the case fails at the merge base and passes with this change (
uv run pytest tests/test_render_anchors.py::test_one_key_keeps_one_keyboard_face_across_the_page -q -n0), deterministically in under three seconds each way.pre-commit run --files tests/test_render_anchors.pyis clean.The failing assertion