Repository navigation
fix: name margin markers against the same column box the layout pass reads - #5207
Merged
Merged
Conversation
…reads
A render named each marker's position ("N percent down") against main's
own box, while the layout pass (#1425) hands `lf-margin-layout` listeners
the prose box (`proseRect(main)`). Since #4724 a render and its layout
pass share one script, so a marker whose target sat near a percent
boundary was named 7%, renamed 6% by the layout listener, and back, which
the suite's write watch reports as an unchanged write
(test_the_gallery_embeds_an_ordinary_stamped_page). The render now reads
the prose box as well, so both agree and the listener's same-basis early
return applies. The event's declared type said DOMRect; it now names the
ProseBox the pass sends.
Closes #5162
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.
A render named each Page Map marker's position ("N percent down") against
main's own box, while the margin's layout pass hands itslf-margin-layoutlisteners the prose box,proseRect(main)(the event detail #1425 added). Since #4724 a render and its layout pass run in one script, so on the feature gallery's embedded page the "On me" marker was named 7 percent down by the render, renamed 6 percent down by the layout listener, and back again on the next render — an A→B→A write the suite's write watch reports asunchanged write: aria-label on span.lf-margin-marker. The render now measures the same prose box, so both readings agree and the listener's same-basis early return actually fires. The event's declared type saidDOMRect; it now names theProseBoxthe pass sends. The kernel is rebuilt.On screen, a marker's spoken position may differ by a percent or so from before on pages whose prose box is narrower or offset from
main; nothing visible changes.Verification:
tests/journeys/test_render_startup.py::test_the_gallery_embeds_an_ordinary_stamped_pagefailed locally on main with the reported finding and passes with this change. A probe wrappingsetAttributecaptured the two writes and their callers (renderNow → nameMarkersandlayoutMountedRows → lf-margin-layout → nameMarkers). The tests that read the spoken position (test_a_pointed_row_is_announced_where_it_stands_and_by_its_words,test_a_margin_entry_walk_position_stays_out_of_its_visible_word) andpnpm run test:runtimepass.Closes #5162 — automated triage